diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-10-29 12:58:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:33 -0500 |
commit | 1d00d6c1ff13607974fcd9469aa9466fcd253c3a (patch) | |
tree | e6d9f896b94b2acd81173a018c8b4407d1f8efcd | |
parent | a79cc7b9182abb2e3936a26064dec414b417f1d1 (diff) |
[media] gspca: Convert some uppercase hexadecimal values to lowercase
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/gspca/cpia1.c | 10 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_ov9650.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/pac207.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/sonixb.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca561.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/stv06xx/stv06xx.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/stv06xx/stv06xx_st6422.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/t613.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/tv8532.c | 2 |
9 files changed, 16 insertions, 16 deletions
diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c index 9b121681d135..80b8dae5e619 100644 --- a/drivers/media/video/gspca/cpia1.c +++ b/drivers/media/video/gspca/cpia1.c | |||
@@ -37,7 +37,7 @@ MODULE_LICENSE("GPL"); | |||
37 | /* constant value's */ | 37 | /* constant value's */ |
38 | #define MAGIC_0 0x19 | 38 | #define MAGIC_0 0x19 |
39 | #define MAGIC_1 0x68 | 39 | #define MAGIC_1 0x68 |
40 | #define DATA_IN 0xC0 | 40 | #define DATA_IN 0xc0 |
41 | #define DATA_OUT 0x40 | 41 | #define DATA_OUT 0x40 |
42 | #define VIDEOSIZE_QCIF 0 /* 176x144 */ | 42 | #define VIDEOSIZE_QCIF 0 /* 176x144 */ |
43 | #define VIDEOSIZE_CIF 1 /* 352x288 */ | 43 | #define VIDEOSIZE_CIF 1 /* 352x288 */ |
@@ -660,9 +660,9 @@ static int do_command(struct gspca_dev *gspca_dev, u16 command, | |||
660 | if (sd->params.qx3.button) { | 660 | if (sd->params.qx3.button) { |
661 | /* button pressed - unlock the latch */ | 661 | /* button pressed - unlock the latch */ |
662 | do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, | 662 | do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, |
663 | 3, 0xDF, 0xDF, 0); | 663 | 3, 0xdf, 0xdf, 0); |
664 | do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, | 664 | do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, |
665 | 3, 0xFF, 0xFF, 0); | 665 | 3, 0xff, 0xff, 0); |
666 | } | 666 | } |
667 | 667 | ||
668 | /* test whether microscope is cradled */ | 668 | /* test whether microscope is cradled */ |
@@ -1110,12 +1110,12 @@ static int command_setlights(struct gspca_dev *gspca_dev) | |||
1110 | p2 = (sd->params.qx3.toplight == 0) << 3; | 1110 | p2 = (sd->params.qx3.toplight == 0) << 3; |
1111 | 1111 | ||
1112 | ret = do_command(gspca_dev, CPIA_COMMAND_WriteVCReg, | 1112 | ret = do_command(gspca_dev, CPIA_COMMAND_WriteVCReg, |
1113 | 0x90, 0x8F, 0x50, 0); | 1113 | 0x90, 0x8f, 0x50, 0); |
1114 | if (ret) | 1114 | if (ret) |
1115 | return ret; | 1115 | return ret; |
1116 | 1116 | ||
1117 | return do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, 2, 0, | 1117 | return do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, 2, 0, |
1118 | p1 | p2 | 0xE0, 0); | 1118 | p1 | p2 | 0xe0, 0); |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | static int set_flicker(struct gspca_dev *gspca_dev, int on, int apply) | 1121 | static int set_flicker(struct gspca_dev *gspca_dev, int on, int apply) |
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.c b/drivers/media/video/gspca/m5602/m5602_ov9650.c index 8ded8b100576..703d48670a24 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov9650.c +++ b/drivers/media/video/gspca/m5602/m5602_ov9650.c | |||
@@ -624,7 +624,7 @@ static int ov9650_set_gain(struct gspca_dev *gspca_dev, __s32 val) | |||
624 | 624 | ||
625 | /* Mask away all uninteresting bits */ | 625 | /* Mask away all uninteresting bits */ |
626 | i2c_data = ((val & 0x0300) >> 2) | | 626 | i2c_data = ((val & 0x0300) >> 2) | |
627 | (i2c_data & 0x3F); | 627 | (i2c_data & 0x3f); |
628 | err = m5602_write_sensor(sd, OV9650_VREF, &i2c_data, 1); | 628 | err = m5602_write_sensor(sd, OV9650_VREF, &i2c_data, 1); |
629 | if (err < 0) | 629 | if (err < 0) |
630 | return err; | 630 | return err; |
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 15e97fa4c337..96f9986305b4 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -162,7 +162,7 @@ static const __u8 pac207_sensor_init[][8] = { | |||
162 | {0x10, 0x12, 0x0d, 0x12, 0x0c, 0x01, 0x29, 0x84}, | 162 | {0x10, 0x12, 0x0d, 0x12, 0x0c, 0x01, 0x29, 0x84}, |
163 | {0x49, 0x64, 0x64, 0x64, 0x04, 0x10, 0xf0, 0x30}, | 163 | {0x49, 0x64, 0x64, 0x64, 0x04, 0x10, 0xf0, 0x30}, |
164 | {0x00, 0x00, 0x00, 0x70, 0xa0, 0xf8, 0x00, 0x00}, | 164 | {0x00, 0x00, 0x00, 0x70, 0xa0, 0xf8, 0x00, 0x00}, |
165 | {0x32, 0x00, 0x96, 0x00, 0xA2, 0x02, 0xaf, 0x00}, | 165 | {0x32, 0x00, 0x96, 0x00, 0xa2, 0x02, 0xaf, 0x00}, |
166 | }; | 166 | }; |
167 | 167 | ||
168 | static int pac207_write_regs(struct gspca_dev *gspca_dev, u16 index, | 168 | 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, | |||
228 | 228 | ||
229 | idreg[0] = pac207_read_reg(gspca_dev, 0x0000); | 229 | idreg[0] = pac207_read_reg(gspca_dev, 0x0000); |
230 | idreg[1] = pac207_read_reg(gspca_dev, 0x0001); | 230 | idreg[1] = pac207_read_reg(gspca_dev, 0x0001); |
231 | idreg[0] = ((idreg[0] & 0x0F) << 4) | ((idreg[1] & 0xf0) >> 4); | 231 | idreg[0] = ((idreg[0] & 0x0f) << 4) | ((idreg[1] & 0xf0) >> 4); |
232 | idreg[1] = idreg[1] & 0x0f; | 232 | idreg[1] = idreg[1] & 0x0f; |
233 | PDEBUG(D_PROBE, "Pixart Sensor ID 0x%02X Chips ID 0x%02X", | 233 | PDEBUG(D_PROBE, "Pixart Sensor ID 0x%02X Chips ID 0x%02X", |
234 | idreg[0], idreg[1]); | 234 | idreg[0], idreg[1]); |
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index 706f96f92654..11b19728a41d 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -340,7 +340,7 @@ static const __u8 ov6650_sensor_init[][8] = { | |||
340 | * but blue wont be there. Avoid this data ... */ | 340 | * but blue wont be there. Avoid this data ... */ |
341 | {0xd0, 0x60, 0x26, 0x01, 0x14, 0xd8, 0xa4, 0x10}, /* format out? */ | 341 | {0xd0, 0x60, 0x26, 0x01, 0x14, 0xd8, 0xa4, 0x10}, /* format out? */ |
342 | {0xd0, 0x60, 0x26, 0x01, 0x14, 0xd8, 0xa4, 0x10}, | 342 | {0xd0, 0x60, 0x26, 0x01, 0x14, 0xd8, 0xa4, 0x10}, |
343 | {0xa0, 0x60, 0x30, 0x3d, 0x0A, 0xd8, 0xa4, 0x10}, | 343 | {0xa0, 0x60, 0x30, 0x3d, 0x0a, 0xd8, 0xa4, 0x10}, |
344 | /* Enable rgb brightness control */ | 344 | /* Enable rgb brightness control */ |
345 | {0xa0, 0x60, 0x61, 0x08, 0x00, 0x00, 0x00, 0x10}, | 345 | {0xa0, 0x60, 0x61, 0x08, 0x00, 0x00, 0x00, 0x10}, |
346 | /* HDG: Note windows uses the line below, which sets both register 0x60 | 346 | /* HDG: Note windows uses the line below, which sets both register 0x60 |
@@ -505,7 +505,7 @@ static const __u8 pas202_sensor_init[][8] = { | |||
505 | {0xa0, 0x40, 0x02, 0x04, 0x00, 0x00, 0x00, 0x10}, | 505 | {0xa0, 0x40, 0x02, 0x04, 0x00, 0x00, 0x00, 0x10}, |
506 | {0xd0, 0x40, 0x04, 0x07, 0x34, 0x00, 0x09, 0x10}, | 506 | {0xd0, 0x40, 0x04, 0x07, 0x34, 0x00, 0x09, 0x10}, |
507 | {0xd0, 0x40, 0x08, 0x01, 0x00, 0x00, 0x01, 0x10}, | 507 | {0xd0, 0x40, 0x08, 0x01, 0x00, 0x00, 0x01, 0x10}, |
508 | {0xd0, 0x40, 0x0C, 0x00, 0x0C, 0x01, 0x32, 0x10}, | 508 | {0xd0, 0x40, 0x0c, 0x00, 0x0c, 0x01, 0x32, 0x10}, |
509 | {0xd0, 0x40, 0x10, 0x00, 0x01, 0x00, 0x63, 0x10}, | 509 | {0xd0, 0x40, 0x10, 0x00, 0x01, 0x00, 0x63, 0x10}, |
510 | {0xa0, 0x40, 0x15, 0x70, 0x01, 0x00, 0x63, 0x10}, | 510 | {0xa0, 0x40, 0x15, 0x70, 0x01, 0x00, 0x63, 0x10}, |
511 | {0xa0, 0x40, 0x18, 0x00, 0x01, 0x00, 0x63, 0x10}, | 511 | {0xa0, 0x40, 0x18, 0x00, 0x01, 0x00, 0x63, 0x10}, |
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index ad73f4812c05..3a162c6d5466 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -597,7 +597,7 @@ static void setgain(struct gspca_dev *gspca_dev) | |||
597 | else if (sd->gain < 128) | 597 | else if (sd->gain < 128) |
598 | gspca_dev->usb_buf[0] = (sd->gain / 2) | 0x40; | 598 | gspca_dev->usb_buf[0] = (sd->gain / 2) | 0x40; |
599 | else | 599 | else |
600 | gspca_dev->usb_buf[0] = (sd->gain / 4) | 0xC0; | 600 | gspca_dev->usb_buf[0] = (sd->gain / 4) | 0xc0; |
601 | 601 | ||
602 | gspca_dev->usb_buf[1] = 0; | 602 | gspca_dev->usb_buf[1] = 0; |
603 | reg_w_buf(gspca_dev, 0x8335, 2); | 603 | reg_w_buf(gspca_dev, 0x8335, 2); |
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx.c b/drivers/media/video/gspca/stv06xx/stv06xx.c index 086de44a6e57..544d5f72a1e3 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx.c | |||
@@ -349,7 +349,7 @@ static void stv06xx_pkt_scan(struct gspca_dev *gspca_dev, | |||
349 | } | 349 | } |
350 | 350 | ||
351 | /* First byte seem to be 02=data 2nd byte is unknown??? */ | 351 | /* First byte seem to be 02=data 2nd byte is unknown??? */ |
352 | if (sd->bridge == BRIDGE_ST6422 && (id & 0xFF00) == 0x0200) | 352 | if (sd->bridge == BRIDGE_ST6422 && (id & 0xff00) == 0x0200) |
353 | goto frame_data; | 353 | goto frame_data; |
354 | 354 | ||
355 | switch (id) { | 355 | switch (id) { |
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_st6422.c b/drivers/media/video/gspca/stv06xx/stv06xx_st6422.c index 3af53264a364..ea677b5d071e 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx_st6422.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx_st6422.c | |||
@@ -151,11 +151,11 @@ static int st6422_init(struct sd *sd) | |||
151 | { STV_ISO_ENABLE, 0x00 }, /* disable capture */ | 151 | { STV_ISO_ENABLE, 0x00 }, /* disable capture */ |
152 | { 0x1436, 0x00 }, | 152 | { 0x1436, 0x00 }, |
153 | { 0x1432, 0x03 }, /* 0x00-0x1F brightness */ | 153 | { 0x1432, 0x03 }, /* 0x00-0x1F brightness */ |
154 | { 0x143a, 0xF9 }, /* 0x00-0x0F contrast */ | 154 | { 0x143a, 0xf9 }, /* 0x00-0x0F contrast */ |
155 | { 0x0509, 0x38 }, /* R */ | 155 | { 0x0509, 0x38 }, /* R */ |
156 | { 0x050a, 0x38 }, /* G */ | 156 | { 0x050a, 0x38 }, /* G */ |
157 | { 0x050b, 0x38 }, /* B */ | 157 | { 0x050b, 0x38 }, /* B */ |
158 | { 0x050c, 0x2A }, | 158 | { 0x050c, 0x2a }, |
159 | { 0x050d, 0x01 }, | 159 | { 0x050d, 0x01 }, |
160 | 160 | ||
161 | 161 | ||
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index b45f4d0f3997..8f0c33116e0d 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -487,7 +487,7 @@ static const u8 gamma_table[GAMMA_MAX][17] = { | |||
487 | {0x00, 0x02, 0x07, 0x0f, 0x18, 0x24, 0x30, 0x3f, /* 3 */ | 487 | {0x00, 0x02, 0x07, 0x0f, 0x18, 0x24, 0x30, 0x3f, /* 3 */ |
488 | 0x4f, 0x61, 0x73, 0x88, 0x9d, 0xb4, 0xcd, 0xe6, | 488 | 0x4f, 0x61, 0x73, 0x88, 0x9d, 0xb4, 0xcd, 0xe6, |
489 | 0xff}, | 489 | 0xff}, |
490 | {0x00, 0x04, 0x0B, 0x15, 0x20, 0x2d, 0x3b, 0x4a, /* 4 */ | 490 | {0x00, 0x04, 0x0b, 0x15, 0x20, 0x2d, 0x3b, 0x4a, /* 4 */ |
491 | 0x5b, 0x6c, 0x7f, 0x92, 0xa7, 0xbc, 0xd2, 0xe9, | 491 | 0x5b, 0x6c, 0x7f, 0x92, 0xa7, 0xbc, 0xd2, 0xe9, |
492 | 0xff}, | 492 | 0xff}, |
493 | {0x00, 0x07, 0x11, 0x15, 0x20, 0x2d, 0x48, 0x58, /* 5 */ | 493 | {0x00, 0x07, 0x11, 0x15, 0x20, 0x2d, 0x48, 0x58, /* 5 */ |
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index d9e3c6050781..38c22f0a4263 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -132,7 +132,7 @@ static const struct v4l2_pix_format sif_mode[] = { | |||
132 | #define R36_PID 0x36 | 132 | #define R36_PID 0x36 |
133 | #define R37_PIDH 0x37 | 133 | #define R37_PIDH 0x37 |
134 | #define R39_Test1 0x39 /* GPIO */ | 134 | #define R39_Test1 0x39 /* GPIO */ |
135 | #define R3B_Test3 0x3B /* GPIO */ | 135 | #define R3B_Test3 0x3b /* GPIO */ |
136 | #define R83_AD_IDH 0x83 | 136 | #define R83_AD_IDH 0x83 |
137 | #define R91_AD_SLOPEREG 0x91 | 137 | #define R91_AD_SLOPEREG 0x91 |
138 | #define R94_AD_BITCONTROL 0x94 | 138 | #define R94_AD_BITCONTROL 0x94 |