aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.h
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/gspca.h
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/gspca.h')
-rw-r--r--drivers/media/video/gspca/gspca.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index 9c894daf356a..0d23e0a90c77 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -9,25 +9,6 @@
9#include <media/v4l2-common.h> 9#include <media/v4l2-common.h>
10#include <linux/mutex.h> 10#include <linux/mutex.h>
11 11
12/* values in 2.6.27 */
13#ifndef V4L2_PIX_FMT_SPCA501
14#define V4L2_PIX_FMT_SPCA501 v4l2_fourcc('S', '5', '0', '1')
15#endif
16#ifndef V4L2_PIX_FMT_SPCA561
17#define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1')
18#endif
19
20/* values in 2.6.26 */
21#ifndef V4L2_CID_POWER_LINE_FREQUENCY
22#define V4L2_CID_POWER_LINE_FREQUENCY (V4L2_CID_BASE+24)
23#endif
24#ifndef V4L2_CID_WHITE_BALANCE_TEMPERATURE
25#define V4L2_CID_WHITE_BALANCE_TEMPERATURE (V4L2_CID_BASE + 26)
26#endif
27#ifndef V4L2_CID_SHARPNESS
28#define V4L2_CID_SHARPNESS (V4L2_CID_BASE+27)
29#endif
30
31#ifdef CONFIG_VIDEO_ADV_DEBUG 12#ifdef CONFIG_VIDEO_ADV_DEBUG
32/* GSPCA our debug messages */ 13/* GSPCA our debug messages */
33extern int gspca_debug; 14extern int gspca_debug;
@@ -76,7 +57,6 @@ struct cam_mode {
76 short width; 57 short width;
77 short height; 58 short height;
78 short mode; /* subdriver value */ 59 short mode; /* subdriver value */
79 short reserved; /* subdriver value */
80}; 60};
81struct cam { 61struct cam {
82 char *dev_name; 62 char *dev_name;
@@ -110,9 +90,9 @@ struct ctrl {
110/* subdriver description */ 90/* subdriver description */
111struct sd_desc { 91struct sd_desc {
112/* information */ 92/* information */
113 char *name; /* sub-driver name */ 93 const char *name; /* sub-driver name */
114/* controls */ 94/* controls */
115 struct ctrl *ctrls; 95 const struct ctrl *ctrls;
116 int nctrls; 96 int nctrls;
117/* operations */ 97/* operations */
118 cam_cf_op config; /* called on probe */ 98 cam_cf_op config; /* called on probe */
@@ -195,6 +175,6 @@ void gspca_disconnect(struct usb_interface *intf);
195struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev, 175struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev,
196 int packet_type, 176 int packet_type,
197 struct gspca_frame *frame, 177 struct gspca_frame *frame,
198 __u8 *data, 178 const __u8 *data,
199 int len); 179 int len);
200#endif /* GSPCAV2_H */ 180#endif /* GSPCAV2_H */