projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a834ba
)
HID: lenovo: Use constants for axes names
author
Jamie Lentin
<jm@lentin.co.uk>
Tue, 11 Aug 2015 21:40:50 +0000
(22:40 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 12 Aug 2015 12:31:39 +0000
(14:31 +0200)
Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hid-lenovo.c
b/drivers/hid/hid-lenovo.c
index 4f59bffd020538846d88d4c85ef76168542c980e..680bb11dbdeea848ff38cb4019001071d1b796c9 100644
(file)
--- 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;