HID: lenovo: Use constants for axes names
authorJamie Lentin <jm@lentin.co.uk>
Tue, 11 Aug 2015 21:40:50 +0000 (22:40 +0100)
committerJiri 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

index 4f59bffd020538846d88d4c85ef76168542c980e..680bb11dbdeea848ff38cb4019001071d1b796c9 100644 (file)
@@ -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;