Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a512a8cc20bbf74700d368ecb0a61dd9d8f1df48
Commit:     a512a8cc20bbf74700d368ecb0a61dd9d8f1df48
Parent:     4615e33f43d3fad5fd92cd02757d23f7803dd7f9
Author:     Dmitry Torokhov <[EMAIL PROTECTED]>
AuthorDate: Sun Nov 4 00:50:19 2007 -0400
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Mon Jan 21 01:11:07 2008 -0500

    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: Dmitry Torokhov <[EMAIL PROTECTED]>
    Acked-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/usbvideo/konicawc.c           |    2 --
 drivers/media/video/usbvideo/quickcam_messenger.c |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/media/video/usbvideo/konicawc.c 
b/drivers/media/video/usbvideo/konicawc.c
index 3e93f80..719b17c 100644
--- a/drivers/media/video/usbvideo/konicawc.c
+++ b/drivers/media/video/usbvideo/konicawc.c
@@ -241,8 +241,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/drivers/media/video/usbvideo/quickcam_messenger.c 
b/drivers/media/video/usbvideo/quickcam_messenger.c
index d847273..6438bc1 100644
--- a/drivers/media/video/usbvideo/quickcam_messenger.c
+++ b/drivers/media/video/usbvideo/quickcam_messenger.c
@@ -105,8 +105,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",
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to