aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r--drivers/media/video/gspca/gspca.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index 2596568e82f..1920c99d6f4 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -118,6 +118,9 @@ struct gspca_frame {
118 struct v4l2_buffer v4l2_buf; 118 struct v4l2_buffer v4l2_buf;
119}; 119};
120 120
121/* defines for the flags member */
122#define GSPCA_SENSOR_UPSIDE_DOWN_FLAG 0x01
123
121struct gspca_dev { 124struct gspca_dev {
122 struct video_device vdev; /* !! must be the first item */ 125 struct video_device vdev; /* !! must be the first item */
123 struct file_operations fops; 126 struct file_operations fops;
@@ -163,6 +166,7 @@ struct gspca_dev {
163 char nurbs; /* number of allocated URBs */ 166 char nurbs; /* number of allocated URBs */
164 char memory; /* memory type (V4L2_MEMORY_xxx) */ 167 char memory; /* memory type (V4L2_MEMORY_xxx) */
165 __u8 nbalt; /* number of USB alternate settings */ 168 __u8 nbalt; /* number of USB alternate settings */
169 __u8 flags; /* see GSPCA_XXX_FLAG defines */
166}; 170};
167 171
168int gspca_dev_probe(struct usb_interface *intf, 172int gspca_dev_probe(struct usb_interface *intf,