diff options
Diffstat (limited to 'drivers/media/video/gspca/tv8532.c')
-rw-r--r-- | drivers/media/video/gspca/tv8532.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index 6da5280b5433..8561234d65e2 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -22,8 +22,8 @@ | |||
22 | 22 | ||
23 | #include "gspca.h" | 23 | #include "gspca.h" |
24 | 24 | ||
25 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 0) | 25 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4) |
26 | static const char version[] = "2.1.0"; | 26 | static const char version[] = "2.1.4"; |
27 | 27 | ||
28 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); | 28 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); |
29 | MODULE_DESCRIPTION("TV8532 USB Camera Driver"); | 29 | MODULE_DESCRIPTION("TV8532 USB Camera Driver"); |
@@ -152,7 +152,7 @@ static struct cam_mode sif_mode[] = { | |||
152 | #define TV8532_AD_ROWBEGIN_L 0x14 | 152 | #define TV8532_AD_ROWBEGIN_L 0x14 |
153 | #define TV8532_AD_ROWBEGIN_H 0x15 | 153 | #define TV8532_AD_ROWBEGIN_H 0x15 |
154 | 154 | ||
155 | static __u32 tv_8532_eeprom_data[] = { | 155 | static const __u32 tv_8532_eeprom_data[] = { |
156 | /* add dataL dataM dataH */ | 156 | /* add dataL dataM dataH */ |
157 | 0x00010001, 0x01018011, 0x02050014, 0x0305001c, | 157 | 0x00010001, 0x01018011, 0x02050014, 0x0305001c, |
158 | 0x040d001e, 0x0505001f, 0x06050519, 0x0705011b, | 158 | 0x040d001e, 0x0505001f, 0x06050519, 0x0705011b, |
@@ -243,7 +243,7 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
243 | static void tv_8532ReadRegisters(struct gspca_dev *gspca_dev) | 243 | static void tv_8532ReadRegisters(struct gspca_dev *gspca_dev) |
244 | { | 244 | { |
245 | struct usb_device *dev = gspca_dev->dev; | 245 | struct usb_device *dev = gspca_dev->dev; |
246 | __u8 data = 0; | 246 | __u8 data; |
247 | /* __u16 vid, pid; */ | 247 | /* __u16 vid, pid; */ |
248 | 248 | ||
249 | reg_r(dev, 0x0001, &data); | 249 | reg_r(dev, 0x0001, &data); |
@@ -275,7 +275,7 @@ static void tv_8532ReadRegisters(struct gspca_dev *gspca_dev) | |||
275 | static void tv_8532_setReg(struct gspca_dev *gspca_dev) | 275 | static void tv_8532_setReg(struct gspca_dev *gspca_dev) |
276 | { | 276 | { |
277 | struct usb_device *dev = gspca_dev->dev; | 277 | struct usb_device *dev = gspca_dev->dev; |
278 | __u8 data = 0; | 278 | __u8 data; |
279 | __u8 value[2] = { 0, 0 }; | 279 | __u8 value[2] = { 0, 0 }; |
280 | 280 | ||
281 | data = ADCBEGINL; | 281 | data = ADCBEGINL; |
@@ -320,7 +320,7 @@ static void tv_8532_setReg(struct gspca_dev *gspca_dev) | |||
320 | static void tv_8532_PollReg(struct gspca_dev *gspca_dev) | 320 | static void tv_8532_PollReg(struct gspca_dev *gspca_dev) |
321 | { | 321 | { |
322 | struct usb_device *dev = gspca_dev->dev; | 322 | struct usb_device *dev = gspca_dev->dev; |
323 | __u8 data = 0; | 323 | __u8 data; |
324 | int i; | 324 | int i; |
325 | 325 | ||
326 | /* strange polling from tgc */ | 326 | /* strange polling from tgc */ |
@@ -338,9 +338,9 @@ static void tv_8532_PollReg(struct gspca_dev *gspca_dev) | |||
338 | static int sd_open(struct gspca_dev *gspca_dev) | 338 | static int sd_open(struct gspca_dev *gspca_dev) |
339 | { | 339 | { |
340 | struct usb_device *dev = gspca_dev->dev; | 340 | struct usb_device *dev = gspca_dev->dev; |
341 | __u8 data = 0; | 341 | __u8 data; |
342 | __u8 dataStart = 0; | 342 | __u8 dataStart; |
343 | __u8 value[2] = { 0, 0 }; | 343 | __u8 value[2]; |
344 | 344 | ||
345 | data = 0x32; | 345 | data = 0x32; |
346 | reg_w(dev, TV8532_AD_SLOPE, &data, 1); | 346 | reg_w(dev, TV8532_AD_SLOPE, &data, 1); |
@@ -646,7 +646,7 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val) | |||
646 | } | 646 | } |
647 | 647 | ||
648 | /* sub-driver description */ | 648 | /* sub-driver description */ |
649 | static struct sd_desc sd_desc = { | 649 | static const struct sd_desc sd_desc = { |
650 | .name = MODULE_NAME, | 650 | .name = MODULE_NAME, |
651 | .ctrls = sd_ctrls, | 651 | .ctrls = sd_ctrls, |
652 | .nctrls = ARRAY_SIZE(sd_ctrls), | 652 | .nctrls = ARRAY_SIZE(sd_ctrls), |
@@ -661,7 +661,7 @@ static struct sd_desc sd_desc = { | |||
661 | 661 | ||
662 | /* -- module initialisation -- */ | 662 | /* -- module initialisation -- */ |
663 | #define DVNM(name) .driver_info = (kernel_ulong_t) name | 663 | #define DVNM(name) .driver_info = (kernel_ulong_t) name |
664 | static __devinitdata struct usb_device_id device_table[] = { | 664 | static const __devinitdata struct usb_device_id device_table[] = { |
665 | {USB_DEVICE(0x046d, 0x0920), DVNM("QC Express")}, | 665 | {USB_DEVICE(0x046d, 0x0920), DVNM("QC Express")}, |
666 | {USB_DEVICE(0x046d, 0x0921), DVNM("Labtec Webcam")}, | 666 | {USB_DEVICE(0x046d, 0x0921), DVNM("Labtec Webcam")}, |
667 | {USB_DEVICE(0x0545, 0x808b), DVNM("Veo Stingray")}, | 667 | {USB_DEVICE(0x0545, 0x808b), DVNM("Veo Stingray")}, |