Input: soc_button_array - get rid of MAX_NBUTTONS
authorHans de Goede <hdegoede@redhat.com>
Fri, 17 Mar 2017 21:03:28 +0000 (14:03 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 17 Mar 2017 21:09:22 +0000 (14:09 -0700)
commit7283b47d5d4d8e6528a08dc6c7ac6ff7cfed66d9
tree394d2675f2db95b4a7233fa7747bbb459f423dde
parent2e2a0db8c88d47123d3dd29d46eba12c26f71149
Input: soc_button_array - get rid of MAX_NBUTTONS

Count how much gpio_keys we actually need, this is a preparation patch
for adding support for the new Win10 / ACPI-6.0 "Generic Buttons Device"
support.

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