projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb7cf3d
)
HID: roccat: Normalized reported profile number for pyra button events.
author
Stefan Achatz
<
[email protected]
>
Wed, 1 Sep 2010 10:42:23 +0000
(12:42 +0200)
committer
Jiri Kosina
<
[email protected]
>
Wed, 1 Sep 2010 10:42:23 +0000
(12:42 +0200)
Pyra uses profile numbers in range 0-4 for everything except button
events. Using range 1-5 consistent now.
Signed-off-by: Stefan Achatz <
[email protected]
>
Signed-off-by: Jiri Kosina <
[email protected]
>
drivers/hid/hid-roccat-pyra.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-roccat-pyra.c
b/drivers/hid/hid-roccat-pyra.c
index 6c09c15d93ed6c169b72718cf47cb12c6a8320af..9bf23047892aefe3c10c1b60a260498c1181f811 100644
(file)
--- a/
drivers/hid/hid-roccat-pyra.c
+++ b/
drivers/hid/hid-roccat-pyra.c
@@
-902,7
+902,11
@@
static void pyra_report_to_chrdev(struct pyra_device const *pyra,
if (button_event->data2 == PYRA_MOUSE_EVENT_BUTTON_PRESS) {
roccat_report.type = button_event->type;
roccat_report.key = button_event->data1;
- roccat_report.value = pyra->actual_profile;
+ /*
+ * pyra reports profile numbers with range 1-5.
+ * Keeping this behaviour.
+ */
+ roccat_report.value = pyra->actual_profile + 1;
roccat_report_event(pyra->chrdev_minor,
(uint8_t const *)&roccat_report,
sizeof(struct pyra_roccat_report));