diff options
Diffstat (limited to 'drivers/usb/input/ati_remote2.c')
-rw-r--r-- | drivers/usb/input/ati_remote2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/input/ati_remote2.c b/drivers/usb/input/ati_remote2.c index 5656278d7965..3c38ac649d2e 100644 --- a/drivers/usb/input/ati_remote2.c +++ b/drivers/usb/input/ati_remote2.c | |||
@@ -131,7 +131,7 @@ static struct usb_driver ati_remote2_driver = { | |||
131 | 131 | ||
132 | static int ati_remote2_open(struct input_dev *idev) | 132 | static int ati_remote2_open(struct input_dev *idev) |
133 | { | 133 | { |
134 | struct ati_remote2 *ar2 = idev->private; | 134 | struct ati_remote2 *ar2 = input_get_drvdata(idev); |
135 | int r; | 135 | int r; |
136 | 136 | ||
137 | r = usb_submit_urb(ar2->urb[0], GFP_KERNEL); | 137 | r = usb_submit_urb(ar2->urb[0], GFP_KERNEL); |
@@ -153,7 +153,7 @@ static int ati_remote2_open(struct input_dev *idev) | |||
153 | 153 | ||
154 | static void ati_remote2_close(struct input_dev *idev) | 154 | static void ati_remote2_close(struct input_dev *idev) |
155 | { | 155 | { |
156 | struct ati_remote2 *ar2 = idev->private; | 156 | struct ati_remote2 *ar2 = input_get_drvdata(idev); |
157 | 157 | ||
158 | usb_kill_urb(ar2->urb[0]); | 158 | usb_kill_urb(ar2->urb[0]); |
159 | usb_kill_urb(ar2->urb[1]); | 159 | usb_kill_urb(ar2->urb[1]); |
@@ -344,7 +344,7 @@ static int ati_remote2_input_init(struct ati_remote2 *ar2) | |||
344 | return -ENOMEM; | 344 | return -ENOMEM; |
345 | 345 | ||
346 | ar2->idev = idev; | 346 | ar2->idev = idev; |
347 | idev->private = ar2; | 347 | input_set_drvdata(idev, ar2); |
348 | 348 | ||
349 | idev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP) | BIT(EV_REL); | 349 | idev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP) | BIT(EV_REL); |
350 | idev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT); | 350 | idev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT); |