summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/stkwebcam/stk-webcam.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-02-04 12:53:11 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 18:39:40 +0100
commitdc0fb28675e7ef7ac12a5532500b2f89e41f2174 (patch)
treed25b4752c6a5aa6e7f8ac210b4c380f3f577b0eb /drivers/media/usb/stkwebcam/stk-webcam.h
parent[media] stk-webcam: add support for struct v4l2_device (diff)
downloadlinux-dc0fb28675e7ef7ac12a5532500b2f89e41f2174.tar.xz
linux-dc0fb28675e7ef7ac12a5532500b2f89e41f2174.zip
[media] stk-webcam: convert to the control framework
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Tested-by: Arvydas Sidorenko <asido4@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/stkwebcam/stk-webcam.h')
-rw-r--r--drivers/media/usb/stkwebcam/stk-webcam.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.h b/drivers/media/usb/stkwebcam/stk-webcam.h
index 49ebe855cba6..901f0df21bc7 100644
--- a/drivers/media/usb/stkwebcam/stk-webcam.h
+++ b/drivers/media/usb/stkwebcam/stk-webcam.h
@@ -24,6 +24,7 @@
#include <linux/usb.h>
#include <media/v4l2-device.h>
+#include <media/v4l2-ctrls.h>
#include <media/v4l2-common.h>
#define DRIVER_VERSION "v0.0.1"
@@ -60,7 +61,6 @@ enum stk_mode {MODE_VGA, MODE_SXGA, MODE_CIF, MODE_QVGA, MODE_QCIF};
struct stk_video {
enum stk_mode mode;
- int brightness;
__u32 palette;
int hflip;
int vflip;
@@ -93,6 +93,7 @@ struct regval {
struct stk_camera {
struct v4l2_device v4l2_dev;
+ struct v4l2_ctrl_handler hdl;
struct video_device vdev;
struct usb_device *udev;
struct usb_interface *interface;