Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1205467
| From | Jamie Lentin <jm@lentin.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/3] HID: lenovo: Use constants for axes names |
| Date | 2015-08-12 00:30 +0200 |
| Message-ID | <pWqds-1LO-21@gated-at.bofh.it> (permalink) |
| References | <pWq3L-1AD-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
---
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 c4c3f09..65df414 100644
--- a/drivers/hid/hid-lenovo.c
+++ b/drivers/hid/hid-lenovo.c
@@ -117,10 +117,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;
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] HID: lenovo: Improve wheel emulation Jamie Lentin <jm@lentin.co.uk> - 2015-08-12 00:20 +0200 [PATCH 2/3] HID: lenovo: Add missing return-value check Jamie Lentin <jm@lentin.co.uk> - 2015-08-12 00:30 +0200 [PATCH 1/3] HID: lenovo: Use constants for axes names Jamie Lentin <jm@lentin.co.uk> - 2015-08-12 00:30 +0200 Re: [PATCH 0/3] HID: lenovo: Improve wheel emulation Jiri Kosina <jikos@kernel.org> - 2015-08-12 14:40 +0200
csiph-web