aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid/usbhid/hid-zpff.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/usbhid/hid-zpff.c')
-rw-r--r--drivers/hid/usbhid/hid-zpff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-zpff.c b/drivers/hid/usbhid/hid-zpff.c
index 7bd8238ca21..a7fbffcdaf3 100644
--- a/drivers/hid/usbhid/hid-zpff.c
+++ b/drivers/hid/usbhid/hid-zpff.c
@@ -37,7 +37,7 @@ struct zpff_device {
static int hid_zpff_play(struct input_dev *dev, void *data,
struct ff_effect *effect)
{
- struct hid_device *hid = dev->private;
+ struct hid_device *hid = input_get_drvdata(dev);
struct zpff_device *zpff = data;
int left, right;