V4L/DVB (10006): gspca - m5602: Align some defines
authorErik Andrén <erik.andren@gmail.com>
Thu, 20 Nov 2008 17:03:22 +0000 (14:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:48 +0000 (09:39 -0200)
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_s5k83a.c
drivers/media/video/gspca/m5602/m5602_s5k83a.h

index 8988a728e0b400dbeb395b2ac78a53d6869b1f4f..0f2addd9802bc00538b7726337fa30fa8e70eeff 100644 (file)
@@ -69,7 +69,7 @@ sensor_found:
 }
 
 int s5k83a_read_sensor(struct sd *sd, const u8 address,
-                             u8 *i2c_data, const u8 len)
+                      u8 *i2c_data, const u8 len)
 {
        int err, i;
 
@@ -106,11 +106,11 @@ int s5k83a_read_sensor(struct sd *sd, const u8 address,
        }
 
 out:
-       return (err < 0) ? err : 0;
+       return err;
 }
 
 int s5k83a_write_sensor(struct sd *sd, const u8 address,
-                              u8 *i2c_data, const u8 len)
+                       u8 *i2c_data, const u8 len)
 {
        int err, i;
        u8 *p;
index ee3ee9cfca1d96083283ba16a5723f2ce7c46349..acc89d08f2ab504b0ae59e496aceb4043e3cef0e 100644 (file)
 #include "m5602_sensor.h"
 
 #define S5K83A_FLIP                            0x01
-#define S5K83A_HFLIP_TUNE              0x03
-#define S5K83A_VFLIP_TUNE              0x05
-#define S5K83A_WHITENESS               0x0a
+#define S5K83A_HFLIP_TUNE                      0x03
+#define S5K83A_VFLIP_TUNE                      0x05
+#define S5K83A_WHITENESS                       0x0a
 #define S5K83A_GAIN                            0x18
-#define S5K83A_BRIGHTNESS              0x1b
-#define S5K83A_PAGE_MAP                        0xec
+#define S5K83A_BRIGHTNESS                      0x1b
+#define S5K83A_PAGE_MAP                                0xec
 
-#define S5K83A_DEFAULT_BRIGHTNESS      0x71
-#define S5K83A_DEFAULT_WHITENESS       0x7e
+#define S5K83A_DEFAULT_BRIGHTNESS              0x71
+#define S5K83A_DEFAULT_WHITENESS               0x7e
 #define S5K83A_DEFAULT_GAIN                    0x00
 #define S5K83A_MAXIMUM_GAIN                    0x3c
 #define S5K83A_FLIP_MASK                       0x10