]> git.baikalelectronics.ru Git - kernel.git/commit
Input: rmi4 - f30: detect INPUT_PROP_BUTTONPAD from the button count
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 1 Mar 2017 08:57:00 +0000 (09:57 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Mar 2017 18:01:56 +0000 (10:01 -0800)
commit82f98705a4539cb209f863db7b02cd666b4a291c
tree7329ec47b24cec04055addd9a05f5ea7b323f495
parent4eba4b13a2c9c2f79f1fb4cbde0c570d0ea5908b
Input: rmi4 - f30: detect INPUT_PROP_BUTTONPAD from the button count

INPUT_PROP_BUTTONPAD is currently only set through the platform data.
The RMI4 header doc says that this property is there to force the
buttonpad property, so we also need to detect it by looking at
the exported buttons count.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reported-and-tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/input/rmi4/rmi_f30.c