aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 2619f7f4517a..2df7fddbd119 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -599,6 +599,12 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
599 /* These usage IDs map directly to the usage codes. */ 599 /* These usage IDs map directly to the usage codes. */
600 case HID_GD_X: case HID_GD_Y: case HID_GD_Z: 600 case HID_GD_X: case HID_GD_Y: case HID_GD_Z:
601 case HID_GD_RX: case HID_GD_RY: case HID_GD_RZ: 601 case HID_GD_RX: case HID_GD_RY: case HID_GD_RZ:
602 if (field->flags & HID_MAIN_ITEM_RELATIVE)
603 map_rel(usage->hid & 0xf);
604 else
605 map_abs_clear(usage->hid & 0xf);
606 break;
607
602 case HID_GD_SLIDER: case HID_GD_DIAL: case HID_GD_WHEEL: 608 case HID_GD_SLIDER: case HID_GD_DIAL: case HID_GD_WHEEL:
603 if (field->flags & HID_MAIN_ITEM_RELATIVE) 609 if (field->flags & HID_MAIN_ITEM_RELATIVE)
604 map_rel(usage->hid & 0xf); 610 map_rel(usage->hid & 0xf);