[media] gspca: Convert some uppercase hexadecimal values to lowercase
authorJean-François Moine <moinejf@free.fr>
Fri, 29 Oct 2010 16:58:22 +0000 (13:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:33 +0000 (08:16 -0200)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/cpia1.c
drivers/media/video/gspca/m5602/m5602_ov9650.c
drivers/media/video/gspca/pac207.c
drivers/media/video/gspca/sonixb.c
drivers/media/video/gspca/spca561.c
drivers/media/video/gspca/stv06xx/stv06xx.c
drivers/media/video/gspca/stv06xx/stv06xx_st6422.c
drivers/media/video/gspca/t613.c
drivers/media/video/gspca/tv8532.c

index 9b121681d135e04d2a921fa7d74f304aad01d0a1..80b8dae5e619d92567c3bc24fe719b2c29a86879 100644 (file)
@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL");
 /* constant value's */
 #define MAGIC_0                0x19
 #define MAGIC_1                0x68
-#define DATA_IN                0xC0
+#define DATA_IN                0xc0
 #define DATA_OUT       0x40
 #define VIDEOSIZE_QCIF 0       /* 176x144 */
 #define VIDEOSIZE_CIF  1       /* 352x288 */
@@ -660,9 +660,9 @@ static int do_command(struct gspca_dev *gspca_dev, u16 command,
                if (sd->params.qx3.button) {
                        /* button pressed - unlock the latch */
                        do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
-                                  3, 0xDF, 0xDF, 0);
+                                  3, 0xdf, 0xdf, 0);
                        do_command(gspca_dev, CPIA_COMMAND_WriteMCPort,
-                                  3, 0xFF, 0xFF, 0);
+                                  3, 0xff, 0xff, 0);
                }
 
                /* test whether microscope is cradled */
@@ -1110,12 +1110,12 @@ static int command_setlights(struct gspca_dev *gspca_dev)
        p2 = (sd->params.qx3.toplight == 0) << 3;
 
        ret = do_command(gspca_dev, CPIA_COMMAND_WriteVCReg,
-                        0x90, 0x8F, 0x50, 0);
+                        0x90, 0x8f, 0x50, 0);
        if (ret)
                return ret;
 
        return do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, 2, 0,
-                         p1 | p2 | 0xE0, 0);
+                         p1 | p2 | 0xe0, 0);
 }
 
 static int set_flicker(struct gspca_dev *gspca_dev, int on, int apply)
index 8ded8b100576e84b40599d157863de6742f24881..703d48670a240c893045411e8a6c98cb9ff4be03 100644 (file)
@@ -624,7 +624,7 @@ static int ov9650_set_gain(struct gspca_dev *gspca_dev, __s32 val)
 
        /* Mask away all uninteresting bits */
        i2c_data = ((val & 0x0300) >> 2) |
-                       (i2c_data & 0x3F);
+                       (i2c_data & 0x3f);
        err = m5602_write_sensor(sd, OV9650_VREF, &i2c_data, 1);
        if (err < 0)
                return err;
index 15e97fa4c33784eb02d7401332fd4b0c8653ac93..96f9986305b4f783d5919705470119de07b6cc09 100644 (file)
@@ -162,7 +162,7 @@ static const __u8 pac207_sensor_init[][8] = {
        {0x10, 0x12, 0x0d, 0x12, 0x0c, 0x01, 0x29, 0x84},
        {0x49, 0x64, 0x64, 0x64, 0x04, 0x10, 0xf0, 0x30},
        {0x00, 0x00, 0x00, 0x70, 0xa0, 0xf8, 0x00, 0x00},
-       {0x32, 0x00, 0x96, 0x00, 0xA2, 0x02, 0xaf, 0x00},
+       {0x32, 0x00, 0x96, 0x00, 0xa2, 0x02, 0xaf, 0x00},
 };
 
 static int pac207_write_regs(struct gspca_dev *gspca_dev, u16 index,
@@ -228,7 +228,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
 
        idreg[0] = pac207_read_reg(gspca_dev, 0x0000);
        idreg[1] = pac207_read_reg(gspca_dev, 0x0001);
-       idreg[0] = ((idreg[0] & 0x0F) << 4) | ((idreg[1] & 0xf0) >> 4);
+       idreg[0] = ((idreg[0] & 0x0f) << 4) | ((idreg[1] & 0xf0) >> 4);
        idreg[1] = idreg[1] & 0x0f;
        PDEBUG(D_PROBE, "Pixart Sensor ID 0x%02X Chips ID 0x%02X",
                idreg[0], idreg[1]);
index 706f96f9265444bc3676a2269c97e35be8735850..11b19728a41dfe79ffe1bb2f9dc9f35606fb571e 100644 (file)
@@ -340,7 +340,7 @@ static const __u8 ov6650_sensor_init[][8] = {
                 * but blue wont be there. Avoid this data ... */
        {0xd0, 0x60, 0x26, 0x01, 0x14, 0xd8, 0xa4, 0x10}, /* format out? */
        {0xd0, 0x60, 0x26, 0x01, 0x14, 0xd8, 0xa4, 0x10},
-       {0xa0, 0x60, 0x30, 0x3d, 0x0A, 0xd8, 0xa4, 0x10},
+       {0xa0, 0x60, 0x30, 0x3d, 0x0a, 0xd8, 0xa4, 0x10},
        /* Enable rgb brightness control */
        {0xa0, 0x60, 0x61, 0x08, 0x00, 0x00, 0x00, 0x10},
        /* HDG: Note windows uses the line below, which sets both register 0x60
@@ -505,7 +505,7 @@ static const __u8 pas202_sensor_init[][8] = {
        {0xa0, 0x40, 0x02, 0x04, 0x00, 0x00, 0x00, 0x10},
        {0xd0, 0x40, 0x04, 0x07, 0x34, 0x00, 0x09, 0x10},
        {0xd0, 0x40, 0x08, 0x01, 0x00, 0x00, 0x01, 0x10},
-       {0xd0, 0x40, 0x0C, 0x00, 0x0C, 0x01, 0x32, 0x10},
+       {0xd0, 0x40, 0x0c, 0x00, 0x0c, 0x01, 0x32, 0x10},
        {0xd0, 0x40, 0x10, 0x00, 0x01, 0x00, 0x63, 0x10},
        {0xa0, 0x40, 0x15, 0x70, 0x01, 0x00, 0x63, 0x10},
        {0xa0, 0x40, 0x18, 0x00, 0x01, 0x00, 0x63, 0x10},
index ad73f4812c0503ba507382ed409958fb2bcadd2c..3a162c6d54664e807ea368df14cf8015ed0c9b7b 100644 (file)
@@ -597,7 +597,7 @@ static void setgain(struct gspca_dev *gspca_dev)
        else if (sd->gain < 128)
                gspca_dev->usb_buf[0] = (sd->gain / 2) | 0x40;
        else
-               gspca_dev->usb_buf[0] = (sd->gain / 4) | 0xC0;
+               gspca_dev->usb_buf[0] = (sd->gain / 4) | 0xc0;
 
        gspca_dev->usb_buf[1] = 0;
        reg_w_buf(gspca_dev, 0x8335, 2);
index 086de44a6e57ea594d6dc5fe2c5c7fce02630b4c..544d5f72a1e39188ad98aeea9dd3d0b43157b6e3 100644 (file)
@@ -349,7 +349,7 @@ static void stv06xx_pkt_scan(struct gspca_dev *gspca_dev,
                }
 
                /* First byte seem to be 02=data 2nd byte is unknown??? */
-               if (sd->bridge == BRIDGE_ST6422 && (id & 0xFF00) == 0x0200)
+               if (sd->bridge == BRIDGE_ST6422 && (id & 0xff00) == 0x0200)
                        goto frame_data;
 
                switch (id) {
index 3af53264a36446db7aeea51df862c959ba7397bb..ea677b5d071e26bd5c50a2793b099d9be759d4a3 100644 (file)
@@ -151,11 +151,11 @@ static int st6422_init(struct sd *sd)
                { STV_ISO_ENABLE, 0x00 }, /* disable capture */
                { 0x1436, 0x00 },
                { 0x1432, 0x03 },       /* 0x00-0x1F brightness */
-               { 0x143a, 0xF9 },       /* 0x00-0x0F contrast */
+               { 0x143a, 0xf9 },       /* 0x00-0x0F contrast */
                { 0x0509, 0x38 },       /* R */
                { 0x050a, 0x38 },       /* G */
                { 0x050b, 0x38 },       /* B */
-               { 0x050c, 0x2A },
+               { 0x050c, 0x2a },
                { 0x050d, 0x01 },
 
 
index b45f4d0f399709e3332cef07fdd17fcc1cb9c1fa..8f0c33116e0d1e65eaa7d3d91f76251ea2e56678 100644 (file)
@@ -487,7 +487,7 @@ static const u8 gamma_table[GAMMA_MAX][17] = {
        {0x00, 0x02, 0x07, 0x0f, 0x18, 0x24, 0x30, 0x3f,        /* 3 */
         0x4f, 0x61, 0x73, 0x88, 0x9d, 0xb4, 0xcd, 0xe6,
         0xff},
-       {0x00, 0x04, 0x0B, 0x15, 0x20, 0x2d, 0x3b, 0x4a,        /* 4 */
+       {0x00, 0x04, 0x0b, 0x15, 0x20, 0x2d, 0x3b, 0x4a,        /* 4 */
         0x5b, 0x6c, 0x7f, 0x92, 0xa7, 0xbc, 0xd2, 0xe9,
         0xff},
        {0x00, 0x07, 0x11, 0x15, 0x20, 0x2d, 0x48, 0x58,        /* 5 */
index d9e3c6050781f7be3e32e708fb483f0a99d2e119..38c22f0a4263f02a986d586d54a68391c2f84457 100644 (file)
@@ -132,7 +132,7 @@ static const struct v4l2_pix_format sif_mode[] = {
 #define R36_PID                0x36
 #define R37_PIDH       0x37
 #define R39_Test1      0x39            /* GPIO */
-#define R3B_Test3      0x3B            /* GPIO */
+#define R3B_Test3      0x3b            /* GPIO */
 #define R83_AD_IDH     0x83
 #define R91_AD_SLOPEREG 0x91
 #define R94_AD_BITCONTROL 0x94