[Wily][PATCH 1/3] HID: lenovo: Use constants for axes names

Joseph Salisbury joseph.salisbury at canonical.com
Wed Oct 21 15:36:54 UTC 2015


From: Jamie Lentin <jm at lentin.co.uk>

BugLink: http://bugs.launchpad.net/bugs/1508178

Signed-off-by: Jamie Lentin <jm at lentin.co.uk>
Signed-off-by: Jiri Kosina <jkosina at suse.cz>
(cherry picked from commit 7f65068fb77f173c5466545fc11818de7a35c1f3)
Signed-off-by: Joseph Salisbury <joseph.salisbury at canonical.com>
---
 drivers/hid/hid-lenovo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c
index 4f59bff..680bb11 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;
-- 
1.9.1





More information about the kernel-team mailing list