aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac207.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-04 10:16:16 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:16:53 -0400
commita5ae2062252e697d38e53dbbeb91460252208914 (patch)
tree38706e9f36e2d93cd3dee8eea639bb74a17b3efa /drivers/media/video/gspca/pac207.c
parent54ab92ca05550550bcec2462de2605f35d079b66 (diff)
V4L/DVB (8195): gspca: Input buffer overwritten in spca561 + cleanup code.
spca561: Input buffer may be changed on reg write. (all sd): Cleanup code, 'const' added. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/gspca/pac207.c')
-rw-r--r--drivers/media/video/gspca/pac207.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c
index 84986684c4db..7e067456e62b 100644
--- a/drivers/media/video/gspca/pac207.c
+++ b/drivers/media/video/gspca/pac207.c
@@ -27,8 +27,8 @@
27 27
28#include "gspca.h" 28#include "gspca.h"
29 29
30#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 0) 30#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4)
31static const char version[] = "2.1.0"; 31static const char version[] = "2.1.4";
32 32
33MODULE_AUTHOR("Hans de Goede <j.w.r.degoede@hhs.nl>"); 33MODULE_AUTHOR("Hans de Goede <j.w.r.degoede@hhs.nl>");
34MODULE_DESCRIPTION("Pixart PAC207"); 34MODULE_DESCRIPTION("Pixart PAC207");
@@ -716,7 +716,7 @@ static int pac207_decode_frame_data(struct gspca_dev *gspca_dev,
716 716
717static void sd_pkt_scan(struct gspca_dev *gspca_dev, 717static void sd_pkt_scan(struct gspca_dev *gspca_dev,
718 struct gspca_frame *frame, 718 struct gspca_frame *frame,
719 unsigned char *data, 719 __u8 *data,
720 int len) 720 int len)
721{ 721{
722 unsigned char *sof; 722 unsigned char *sof;
@@ -754,8 +754,8 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
754 754
755 n = pac207_decode_frame_data(gspca_dev, frame, data, len); 755 n = pac207_decode_frame_data(gspca_dev, frame, data, len);
756 if (n) 756 if (n)
757 frame = gspca_frame_add(gspca_dev, LAST_PACKET, 757 gspca_frame_add(gspca_dev, LAST_PACKET,
758 frame, NULL, 0); 758 frame, NULL, 0);
759} 759}
760 760
761static void setbrightness(struct gspca_dev *gspca_dev) 761static void setbrightness(struct gspca_dev *gspca_dev)
@@ -879,7 +879,7 @@ static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val)
879} 879}
880 880
881/* sub-driver description */ 881/* sub-driver description */
882static struct sd_desc sd_desc = { 882static const struct sd_desc sd_desc = {
883 .name = MODULE_NAME, 883 .name = MODULE_NAME,
884 .ctrls = sd_ctrls, 884 .ctrls = sd_ctrls,
885 .nctrls = ARRAY_SIZE(sd_ctrls), 885 .nctrls = ARRAY_SIZE(sd_ctrls),
@@ -895,7 +895,7 @@ static struct sd_desc sd_desc = {
895 895
896/* -- module initialisation -- */ 896/* -- module initialisation -- */
897#define DVNM(name) .driver_info = (kernel_ulong_t) name 897#define DVNM(name) .driver_info = (kernel_ulong_t) name
898static __devinitdata struct usb_device_id device_table[] = { 898static const __devinitdata struct usb_device_id device_table[] = {
899 {USB_DEVICE(0x041e, 0x4028), DVNM("Creative Webcam Vista Plus")}, 899 {USB_DEVICE(0x041e, 0x4028), DVNM("Creative Webcam Vista Plus")},
900 {USB_DEVICE(0x093a, 0x2460), DVNM("Q-Tec Webcam 100")}, 900 {USB_DEVICE(0x093a, 0x2460), DVNM("Q-Tec Webcam 100")},
901 {USB_DEVICE(0x093a, 0x2463), DVNM("Philips spc200nc pac207")}, 901 {USB_DEVICE(0x093a, 0x2463), DVNM("Philips spc200nc pac207")},