From b53f1279a32808d696676b905d167bcd33c6e2dc Mon Sep 17 00:00:00 2001
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
Date: Mon, 20 Aug 2012 13:27:03 +0200
Subject: [PATCH] s5k4ecgx: fix register definitions
---
drivers/media/video/s5k4ecgx.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@@ -69,7 +69,7 @@ module_param(debug, int, 0644);
#define REG_G_PREV_OPEN_AFTER_CH 0x7000026a
/* Preview context register sets. n = 0...4. */
-#define PREG(n, x) ((n) * 0x26 + (x))
+#define PREG(n, x) ((n) * 0x30 + (x))
#define REG_P_OUT_WIDTH(n) PREG(n, 0x700002a6)
#define REG_P_OUT_HEIGHT(n) PREG(n, 0x700002a8)
#define REG_P_FMT(n) PREG(n, 0x700002aa)
@@ -93,10 +93,10 @@ module_param(debug, int, 0644);
#define REG_G_PREVZOOM_IN_HEIGHT 0x70000496
#define REG_G_PREVZOOM_IN_XOFFS 0x70000498
#define REG_G_PREVZOOM_IN_YOFFS 0x7000049a
-#define REG_G_CAPZOOM_IN_WIDTH 0x70000494
-#define REG_G_CAPZOOM_IN_HEIGHT 0x70000496
-#define REG_G_CAPZOOM_IN_XOFFS 0x70000498
-#define REG_G_CAPZOOM_IN_YOFFS 0x7000049a
+#define REG_G_CAPZOOM_IN_WIDTH 0x7000049c
+#define REG_G_CAPZOOM_IN_HEIGHT 0x7000049e
+#define REG_G_CAPZOOM_IN_XOFFS 0x700004a0
+#define REG_G_CAPZOOM_IN_YOFFS 0x700004a2
/* n = 0...4 */
#define REG_USER_SHARPNESS(n) (0x70000a28 + (n) * 0xb6)
--
1.7.11.3