aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/ati_remote.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-04-12 01:34:39 -0400
committerDmitry Torokhov <dtor@insightbb.com>2007-04-12 01:34:39 -0400
commit7791bdae71243050132ede7ea1558c828b69458f (patch)
treef6c3291deff0b7b8720405432245b6acf7cce218 /drivers/usb/input/ati_remote.c
parent373f9713dccc8fc8e076157001a60133455c0550 (diff)
Input: drivers/usb/input - don't access dev->private directly
Use input_get_drvdata() and input_set_drvdata() instead. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/ati_remote.c')
-rw-r--r--drivers/usb/input/ati_remote.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c
index a1ae9eea5741..876b2725609d 100644
--- a/drivers/usb/input/ati_remote.c
+++ b/drivers/usb/input/ati_remote.c
@@ -318,7 +318,7 @@ static void ati_remote_dump(unsigned char *data, unsigned int len)
318 */ 318 */
319static int ati_remote_open(struct input_dev *inputdev) 319static int ati_remote_open(struct input_dev *inputdev)
320{ 320{
321 struct ati_remote *ati_remote = inputdev->private; 321 struct ati_remote *ati_remote = input_get_drvdata(inputdev);
322 322
323 /* On first open, submit the read urb which was set up previously. */ 323 /* On first open, submit the read urb which was set up previously. */
324 ati_remote->irq_urb->dev = ati_remote->udev; 324 ati_remote->irq_urb->dev = ati_remote->udev;
@@ -336,7 +336,7 @@ static int ati_remote_open(struct input_dev *inputdev)
336 */ 336 */
337static void ati_remote_close(struct input_dev *inputdev) 337static void ati_remote_close(struct input_dev *inputdev)
338{ 338{
339 struct ati_remote *ati_remote = inputdev->private; 339 struct ati_remote *ati_remote = input_get_drvdata(inputdev);
340 340
341 usb_kill_urb(ati_remote->irq_urb); 341 usb_kill_urb(ati_remote->irq_urb);
342} 342}
@@ -653,7 +653,8 @@ static void ati_remote_input_init(struct ati_remote *ati_remote)
653 if (ati_remote_tbl[i].type == EV_KEY) 653 if (ati_remote_tbl[i].type == EV_KEY)
654 set_bit(ati_remote_tbl[i].code, idev->keybit); 654 set_bit(ati_remote_tbl[i].code, idev->keybit);
655 655
656 idev->private = ati_remote; 656 input_set_drvdata(idev, ati_remote);
657
657 idev->open = ati_remote_open; 658 idev->open = ati_remote_open;
658 idev->close = ati_remote_close; 659 idev->close = ati_remote_close;
659 660