Skip to content

Commit 7f65068

Browse files
lentinjJiri Kosina
authored andcommitted
HID: lenovo: Use constants for axes names
Signed-off-by: Jamie Lentin <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 7a834ba commit 7f65068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/hid-lenovo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ static int lenovo_input_mapping_cptkbd(struct hid_device *hdev,
146146

147147
switch (usage->hid & HID_USAGE) {
148148
case 0x0000:
149-
hid_map_usage(hi, usage, bit, max, EV_REL, 0x06);
149+
hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
150150
return 1;
151151
case 0x0001:
152-
hid_map_usage(hi, usage, bit, max, EV_REL, 0x08);
152+
hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL);
153153
return 1;
154154
default:
155155
return -1;

0 commit comments

Comments
 (0)