diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-09 10:17:31 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-05-09 10:17:31 +0200 |
commit | e071298589418076ef0a9813677f2d7032b65baa (patch) | |
tree | 1ec366c95456511dc0820aed22b333caf89e0a2d /drivers/hid/usbhid/hid-core.c | |
parent | fed76ab3b206bd0c5a9e3be17cead0a22d7593c5 (diff) |
HID: switch to using input_dev->dev.parent
In preparation for struct class_device -> struct device input
core conversion switch to using input_dev->dev.parent when
specifying device position in sysfs tree.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid/hid-core.c')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index d06b9e70ce6a..d91b9dac6dff 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -446,7 +446,7 @@ void usbhid_submit_report(struct hid_device *hid, struct hid_report *report, uns static int usb_hidinput_input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) { - struct hid_device *hid = dev->private; + struct hid_device *hid = input_get_drvdata(dev); struct hid_field *field; int offset; |