diff options
Diffstat (limited to 'drivers/media/video/gspca/sunplus.c')
-rw-r--r-- | drivers/media/video/gspca/sunplus.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index 113c07106924..f2d033508581 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include "gspca.h" | 24 | #include "gspca.h" |
25 | #include "jpeg.h" | 25 | #include "jpeg.h" |
26 | 26 | ||
27 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 1) | 27 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4) |
28 | static const char version[] = "2.1.1"; | 28 | static const char version[] = "2.1.4"; |
29 | 29 | ||
30 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); | 30 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); |
31 | MODULE_DESCRIPTION("GSPCA/SPCA5xx USB Camera Driver"); | 31 | MODULE_DESCRIPTION("GSPCA/SPCA5xx USB Camera Driver"); |
@@ -35,7 +35,7 @@ MODULE_LICENSE("GPL"); | |||
35 | struct sd { | 35 | struct sd { |
36 | struct gspca_dev gspca_dev; /* !! must be the first item */ | 36 | struct gspca_dev gspca_dev; /* !! must be the first item */ |
37 | 37 | ||
38 | unsigned char packet[ISO_MAX_SIZE + 128]; | 38 | __u8 packet[ISO_MAX_SIZE + 128]; |
39 | /* !! no more than 128 ff in an ISO packet */ | 39 | /* !! no more than 128 ff in an ISO packet */ |
40 | 40 | ||
41 | unsigned char brightness; | 41 | unsigned char brightness; |
@@ -156,7 +156,7 @@ static struct cam_mode vga_mode2[] = { | |||
156 | #define SPCA536_OFFSET_FRAMSEQ 1 | 156 | #define SPCA536_OFFSET_FRAMSEQ 1 |
157 | 157 | ||
158 | /* Initialisation data for the Creative PC-CAM 600 */ | 158 | /* Initialisation data for the Creative PC-CAM 600 */ |
159 | static __u16 spca504_pccam600_init_data[][3] = { | 159 | static const __u16 spca504_pccam600_init_data[][3] = { |
160 | /* {0xa0, 0x0000, 0x0503}, * capture mode */ | 160 | /* {0xa0, 0x0000, 0x0503}, * capture mode */ |
161 | {0x00, 0x0000, 0x2000}, | 161 | {0x00, 0x0000, 0x2000}, |
162 | {0x00, 0x0013, 0x2301}, | 162 | {0x00, 0x0013, 0x2301}, |
@@ -186,7 +186,7 @@ static __u16 spca504_pccam600_init_data[][3] = { | |||
186 | /* Creative PC-CAM 600 specific open data, sent before using the | 186 | /* Creative PC-CAM 600 specific open data, sent before using the |
187 | * generic initialisation data from spca504_open_data. | 187 | * generic initialisation data from spca504_open_data. |
188 | */ | 188 | */ |
189 | static __u16 spca504_pccam600_open_data[][3] = { | 189 | static const __u16 spca504_pccam600_open_data[][3] = { |
190 | {0x00, 0x0001, 0x2501}, | 190 | {0x00, 0x0001, 0x2501}, |
191 | {0x20, 0x0500, 0x0001}, /* snapshot mode */ | 191 | {0x20, 0x0500, 0x0001}, /* snapshot mode */ |
192 | {0x00, 0x0003, 0x2880}, | 192 | {0x00, 0x0003, 0x2880}, |
@@ -195,7 +195,7 @@ static __u16 spca504_pccam600_open_data[][3] = { | |||
195 | }; | 195 | }; |
196 | 196 | ||
197 | /* Initialisation data for the logitech clicksmart 420 */ | 197 | /* Initialisation data for the logitech clicksmart 420 */ |
198 | static __u16 spca504A_clicksmart420_init_data[][3] = { | 198 | static const __u16 spca504A_clicksmart420_init_data[][3] = { |
199 | /* {0xa0, 0x0000, 0x0503}, * capture mode */ | 199 | /* {0xa0, 0x0000, 0x0503}, * capture mode */ |
200 | {0x00, 0x0000, 0x2000}, | 200 | {0x00, 0x0000, 0x2000}, |
201 | {0x00, 0x0013, 0x2301}, | 201 | {0x00, 0x0013, 0x2301}, |
@@ -226,7 +226,7 @@ static __u16 spca504A_clicksmart420_init_data[][3] = { | |||
226 | }; | 226 | }; |
227 | 227 | ||
228 | /* clicksmart 420 open data ? */ | 228 | /* clicksmart 420 open data ? */ |
229 | static __u16 spca504A_clicksmart420_open_data[][3] = { | 229 | static const __u16 spca504A_clicksmart420_open_data[][3] = { |
230 | {0x00, 0x0001, 0x2501}, | 230 | {0x00, 0x0001, 0x2501}, |
231 | {0x20, 0x0502, 0x0000}, | 231 | {0x20, 0x0502, 0x0000}, |
232 | {0x06, 0x0000, 0x0000}, | 232 | {0x06, 0x0000, 0x0000}, |
@@ -373,7 +373,7 @@ static __u16 spca504A_clicksmart420_open_data[][3] = { | |||
373 | {} | 373 | {} |
374 | }; | 374 | }; |
375 | 375 | ||
376 | static unsigned char qtable_creative_pccam[2][64] = { | 376 | static const __u8 qtable_creative_pccam[2][64] = { |
377 | { /* Q-table Y-components */ | 377 | { /* Q-table Y-components */ |
378 | 0x05, 0x03, 0x03, 0x05, 0x07, 0x0c, 0x0f, 0x12, | 378 | 0x05, 0x03, 0x03, 0x05, 0x07, 0x0c, 0x0f, 0x12, |
379 | 0x04, 0x04, 0x04, 0x06, 0x08, 0x11, 0x12, 0x11, | 379 | 0x04, 0x04, 0x04, 0x06, 0x08, 0x11, 0x12, 0x11, |
@@ -398,7 +398,7 @@ static unsigned char qtable_creative_pccam[2][64] = { | |||
398 | * except for one byte. Possibly a typo? | 398 | * except for one byte. Possibly a typo? |
399 | * NWG: 18/05/2003. | 399 | * NWG: 18/05/2003. |
400 | */ | 400 | */ |
401 | static unsigned char qtable_spca504_default[2][64] = { | 401 | static const __u8 qtable_spca504_default[2][64] = { |
402 | { /* Q-table Y-components */ | 402 | { /* Q-table Y-components */ |
403 | 0x05, 0x03, 0x03, 0x05, 0x07, 0x0c, 0x0f, 0x12, | 403 | 0x05, 0x03, 0x03, 0x05, 0x07, 0x0c, 0x0f, 0x12, |
404 | 0x04, 0x04, 0x04, 0x06, 0x08, 0x11, 0x12, 0x11, | 404 | 0x04, 0x04, 0x04, 0x06, 0x08, 0x11, 0x12, 0x11, |
@@ -512,7 +512,7 @@ static int reg_read(struct usb_device *dev, | |||
512 | } | 512 | } |
513 | 513 | ||
514 | static int write_vector(struct gspca_dev *gspca_dev, | 514 | static int write_vector(struct gspca_dev *gspca_dev, |
515 | __u16 data[][3]) | 515 | const __u16 data[][3]) |
516 | { | 516 | { |
517 | struct usb_device *dev = gspca_dev->dev; | 517 | struct usb_device *dev = gspca_dev->dev; |
518 | int ret, i = 0; | 518 | int ret, i = 0; |
@@ -534,7 +534,7 @@ static int spca50x_setup_qtable(struct gspca_dev *gspca_dev, | |||
534 | unsigned int request, | 534 | unsigned int request, |
535 | unsigned int ybase, | 535 | unsigned int ybase, |
536 | unsigned int cbase, | 536 | unsigned int cbase, |
537 | unsigned char qtable[2][64]) | 537 | const __u8 qtable[2][64]) |
538 | { | 538 | { |
539 | struct usb_device *dev = gspca_dev->dev; | 539 | struct usb_device *dev = gspca_dev->dev; |
540 | int i, err; | 540 | int i, err; |
@@ -1242,7 +1242,7 @@ static void sd_close(struct gspca_dev *gspca_dev) | |||
1242 | 1242 | ||
1243 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 1243 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
1244 | struct gspca_frame *frame, /* target */ | 1244 | struct gspca_frame *frame, /* target */ |
1245 | unsigned char *data, /* isoc packet */ | 1245 | __u8 *data, /* isoc packet */ |
1246 | int len) /* iso packet length */ | 1246 | int len) /* iso packet length */ |
1247 | { | 1247 | { |
1248 | struct sd *sd = (struct sd *) gspca_dev; | 1248 | struct sd *sd = (struct sd *) gspca_dev; |
@@ -1530,7 +1530,7 @@ static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val) | |||
1530 | } | 1530 | } |
1531 | 1531 | ||
1532 | /* sub-driver description */ | 1532 | /* sub-driver description */ |
1533 | static struct sd_desc sd_desc = { | 1533 | static const struct sd_desc sd_desc = { |
1534 | .name = MODULE_NAME, | 1534 | .name = MODULE_NAME, |
1535 | .ctrls = sd_ctrls, | 1535 | .ctrls = sd_ctrls, |
1536 | .nctrls = ARRAY_SIZE(sd_ctrls), | 1536 | .nctrls = ARRAY_SIZE(sd_ctrls), |
@@ -1545,7 +1545,7 @@ static struct sd_desc sd_desc = { | |||
1545 | 1545 | ||
1546 | /* -- module initialisation -- */ | 1546 | /* -- module initialisation -- */ |
1547 | #define DVNM(name) .driver_info = (kernel_ulong_t) name | 1547 | #define DVNM(name) .driver_info = (kernel_ulong_t) name |
1548 | static __devinitdata struct usb_device_id device_table[] = { | 1548 | static const __devinitdata struct usb_device_id device_table[] = { |
1549 | {USB_DEVICE(0x041e, 0x400b), DVNM("Creative PC-CAM 600")}, | 1549 | {USB_DEVICE(0x041e, 0x400b), DVNM("Creative PC-CAM 600")}, |
1550 | {USB_DEVICE(0x041e, 0x4012), DVNM("PC-Cam350")}, | 1550 | {USB_DEVICE(0x041e, 0x4012), DVNM("PC-Cam350")}, |
1551 | {USB_DEVICE(0x041e, 0x4013), DVNM("Creative Pccam750")}, | 1551 | {USB_DEVICE(0x041e, 0x4013), DVNM("Creative Pccam750")}, |