summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-lenovo.c
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2015-08-12 00:40:50 +0300
committerJiri Kosina <jkosina@suse.cz>2015-08-12 15:31:39 +0300
commit7f65068fb77f173c5466545fc11818de7a35c1f3 (patch)
tree4af29407e36c842f9dad13e825017bf8e6078227 /drivers/hid/hid-lenovo.c
parent7a834ba5e26e9e4afabf3cce9ca8cd1c6c3dce50 (diff)
downloadlinux-7f65068fb77f173c5466545fc11818de7a35c1f3.tar.xz
HID: lenovo: Use constants for axes names
Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lenovo.c')
-rw-r--r--drivers/hid/hid-lenovo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c
index 4f59bffd0205..680bb11dbdee 100644
--- a/drivers/hid/hid-lenovo.c
+++ b/drivers/hid/hid-lenovo.c
@@ -146,10 +146,10 @@ static int lenovo_input_mapping_cptkbd(struct hid_device *hdev,
switch (usage->hid & HID_USAGE) {
case 0x0000:
- hid_map_usage(hi, usage, bit, max, EV_REL, 0x06);
+ hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
return 1;
case 0x0001:
- hid_map_usage(hi, usage, bit, max, EV_REL, 0x08);
+ hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL);
return 1;
default:
return -1;