提交 7f65068f 编写于 作者: J Jamie Lentin 提交者: Jiri Kosina

HID: lenovo: Use constants for axes names

Signed-off-by: NJamie Lentin <jm@lentin.co.uk>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 7a834ba5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册