diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-27 09:25:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-27 09:25:08 -0300 |
commit | b23b8ee62a10ee473cb3d84ebf620ded527fc581 (patch) | |
tree | f3835cd00d1e38fe2adc0df9a2fbf0d02829a281 /linux/drivers/media/video/usbvideo | |
parent | 96e68dee554c5a2529bb70972c9954e62c36386d (diff) | |
download | mediapointer-dvb-s2-b23b8ee62a10ee473cb3d84ebf620ded527fc581.tar.gz mediapointer-dvb-s2-b23b8ee62a10ee473cb3d84ebf620ded527fc581.tar.bz2 |
Backport commit a512a8cc20bbf74700d368ecb0a61dd9d8f1df48
kernel-sync:
Original description:
Author: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: Sun Nov 4 00:50:19 2007 -0400
V4L/DVB: Don't access input_dev->private directly
Drivers should use input_{get|set}_drvdata() instead of accessing
input_dev->provate directly, but since these drivers do not actually
use the data stored there we can simply remove the assignments.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/usbvideo')
-rw-r--r-- | linux/drivers/media/video/usbvideo/konicawc.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvideo/quickcam_messenger.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/linux/drivers/media/video/usbvideo/konicawc.c b/linux/drivers/media/video/usbvideo/konicawc.c index 539fe984a..67f46c77f 100644 --- a/linux/drivers/media/video/usbvideo/konicawc.c +++ b/linux/drivers/media/video/usbvideo/konicawc.c @@ -256,8 +256,6 @@ static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev input_dev->evbit[0] = BIT_MASK(EV_KEY); input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); - input_dev->private = cam; - error = input_register_device(cam->input); if (error) { warn("Failed to register camera's input device, err: %d\n", diff --git a/linux/drivers/media/video/usbvideo/quickcam_messenger.c b/linux/drivers/media/video/usbvideo/quickcam_messenger.c index 4b4e4d9f2..c6673bd58 100644 --- a/linux/drivers/media/video/usbvideo/quickcam_messenger.c +++ b/linux/drivers/media/video/usbvideo/quickcam_messenger.c @@ -118,8 +118,6 @@ static void qcm_register_input(struct qcm *cam, struct usb_device *dev) input_dev->evbit[0] = BIT_MASK(EV_KEY); input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); - input_dev->private = cam; - error = input_register_device(cam->input); if (error) { warn("Failed to register camera's input device, err: %d\n", |