OSDN Git Service

Input: soc_button_array - add usage-page 0x01 usage-id 0xca mapping
authorHans de Goede <hdegoede@redhat.com>
Fri, 4 Jan 2019 02:09:39 +0000 (18:09 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Jan 2019 19:16:23 +0000 (11:16 -0800)
commit39be9b6d0455ed6dc6e9ac7252f56a498db5314e
tree515e8830665fae550d62d05b9f1920ab066fe73f
parent1e3c336ad8f40f88a8961c434640920fe35cc08b
Input: soc_button_array - add usage-page 0x01 usage-id 0xca mapping

The ACPI0011 _DSD button descriptor on a CHT based Intel Compute Sticks
contains a mapping for usage-page 0x01 usage-id 0xca.

As described in hutrr52_system_display_rotation_lock_controls_0.pdf this
should be mapped as a "System Display Rotation Lock Slider Switch", this
commit adds support for this, silencing the following warning:

soc_button_array ACPI0011:00: Unknown button index 4 upage 01 usage ca,
ignoring

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/soc_button_array.c