aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/mars.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/mars.c')
-rw-r--r--drivers/media/video/gspca/mars.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c
index 6556e0a330fa..c70ccc8fe68b 100644
--- a/drivers/media/video/gspca/mars.c
+++ b/drivers/media/video/gspca/mars.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, 0) 27#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4)
28static const char version[] = "2.1.0"; 28static const char version[] = "2.1.4";
29 29
30MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); 30MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>");
31MODULE_DESCRIPTION("GSPCA/Mars USB Camera Driver"); 31MODULE_DESCRIPTION("GSPCA/Mars USB Camera Driver");
@@ -140,7 +140,8 @@ static void sd_start(struct gspca_dev *gspca_dev)
140 __u16 MI_buf[242]; 140 __u16 MI_buf[242];
141 int h_size, v_size; 141 int h_size, v_size;
142 int intpipe; 142 int intpipe;
143 /* struct usb_device *dev = pcam->dev; */ 143/* struct usb_device *dev = pcam->dev; */
144
144 memset(data, 0, sizeof data); 145 memset(data, 0, sizeof data);
145 memset(MI_buf, 0, sizeof MI_buf); 146 memset(MI_buf, 0, sizeof MI_buf);
146 147
@@ -351,7 +352,7 @@ static void sd_close(struct gspca_dev *gspca_dev)
351 352
352static void sd_pkt_scan(struct gspca_dev *gspca_dev, 353static void sd_pkt_scan(struct gspca_dev *gspca_dev,
353 struct gspca_frame *frame, /* target */ 354 struct gspca_frame *frame, /* target */
354 unsigned char *data, /* isoc packet */ 355 __u8 *data, /* isoc packet */
355 int len) /* iso packet length */ 356 int len) /* iso packet length */
356{ 357{
357 struct sd *sd = (struct sd *) gspca_dev; 358 struct sd *sd = (struct sd *) gspca_dev;
@@ -389,7 +390,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
389} 390}
390 391
391/* sub-driver description */ 392/* sub-driver description */
392static struct sd_desc sd_desc = { 393static const struct sd_desc sd_desc = {
393 .name = MODULE_NAME, 394 .name = MODULE_NAME,
394 .ctrls = sd_ctrls, 395 .ctrls = sd_ctrls,
395 .nctrls = ARRAY_SIZE(sd_ctrls), 396 .nctrls = ARRAY_SIZE(sd_ctrls),
@@ -404,7 +405,7 @@ static struct sd_desc sd_desc = {
404 405
405/* -- module initialisation -- */ 406/* -- module initialisation -- */
406#define DVNM(name) .driver_info = (kernel_ulong_t) name 407#define DVNM(name) .driver_info = (kernel_ulong_t) name
407static __devinitdata struct usb_device_id device_table[] = { 408static const __devinitdata struct usb_device_id device_table[] = {
408 {USB_DEVICE(0x093a, 0x050f), DVNM("Mars-Semi Pc-Camera")}, 409 {USB_DEVICE(0x093a, 0x050f), DVNM("Mars-Semi Pc-Camera")},
409 {} 410 {}
410}; 411};