]> err.no Git - linux-2.6/commitdiff
[PATCH] v4l: 791: codingstyle fixes
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>
Wed, 9 Nov 2005 05:37:36 +0000 (21:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:19 +0000 (07:56 -0800)
- CodingStyle fixes

Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/em28xx/em28xx-input.c
drivers/media/video/ir-kbd-i2c.c

index 3800b99e4b8641fb39ff218fbc2105a80e8a15c5..0576ad6c42b774530fb186a7a9d5f56c5cf85cb0 100644 (file)
@@ -86,15 +86,15 @@ static int get_key_terratec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
        }
 
        /* it seems that 0xFE indicates that a button is still hold
-          down, while 0xFF indicates that no button is hold
-          down. 0xFE sequences are sometimes interrupted by 0xFF */
+          down, while 0xff indicates that no button is hold
+          down. 0xfe sequences are sometimes interrupted by 0xFF */
 
        dprintk("key %02x\n", b);
 
-       if (b == 0xFF)
+       if (b == 0xff)
                return 0;
 
-       if (b == 0xFE)
+       if (b == 0xfe)
                /* keep old data */
                return 1;
 
index c4701035ca20b06b11e8b798119ef1fe61352b4d..b0facaa40b2f5df75f33dd07d87c6f8fd56eecd7 100644 (file)
@@ -206,15 +206,15 @@ static int get_key_knc1(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
        }
 
        /* it seems that 0xFE indicates that a button is still hold
-          down, while 0xFF indicates that no button is hold
-          down. 0xFE sequences are sometimes interrupted by 0xFF */
+          down, while 0xff indicates that no button is hold
+          down. 0xfe sequences are sometimes interrupted by 0xFF */
 
        dprintk(2,"key %02x\n", b);
 
-       if (b == 0xFF)
+       if (b == 0xff)
                return 0;
 
-       if (b == 0xFE)
+       if (b == 0xfe)
                /* keep old data */
                return 1;
 
@@ -429,7 +429,9 @@ static int ir_probe(struct i2c_adapter *adap)
        static const int probe_saa7134[] = { 0x7a, -1 };
        static const int probe_em2820[] = { 0x30, 0x47, -1 };
        const int *probe = NULL;
-       struct i2c_client c; unsigned char buf; int i,rc;
+       struct i2c_client c;
+       unsigned char buf;
+       int i,rc;
 
        switch (adap->id) {
        case I2C_HW_B_BT848: