From: Jamie Lentin Date: Tue, 11 Aug 2015 21:40:50 +0000 (+0100) Subject: HID: lenovo: Use constants for axes names X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f65068fb77f173c5466545fc11818de7a35c1f3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git HID: lenovo: Use constants for axes names Signed-off-by: Jamie Lentin Signed-off-by: Jiri Kosina --- 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;