diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2007-10-31 14:33:26 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-10-31 15:30:35 +0300 |
commit | f202df600c4485d406aa033ce793d3e78f5ff1e0 (patch) | |
tree | 6898f340791d501e32b860dacb9b7a0819fe8031 /drivers/hid | |
parent | 368d290ba2a66338303b5d3998b182e404a9eb38 (diff) | |
download | linux-f202df600c4485d406aa033ce793d3e78f5ff1e0.tar.xz |
HID: Don't access input_dev->private directly
input_{get|set}_drvdata() helpers should be used instead.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 71eb7693e453..0b27da7d7497 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -297,7 +297,7 @@ static struct hid_usage *hidinput_find_key(struct hid_device *hid, static int hidinput_getkeycode(struct input_dev *dev, int scancode, int *keycode) { - struct hid_device *hid = dev->private; + struct hid_device *hid = input_get_drvdata(dev); struct hid_usage *usage; usage = hidinput_find_key(hid, scancode, 0); @@ -311,7 +311,7 @@ static int hidinput_getkeycode(struct input_dev *dev, int scancode, static int hidinput_setkeycode(struct input_dev *dev, int scancode, int keycode) { - struct hid_device *hid = dev->private; + struct hid_device *hid = input_get_drvdata(dev); struct hid_usage *usage; int old_keycode; |