Input: soc_button_array - add active_low setting to soc_button_info
authorHans de Goede <hdegoede@redhat.com>
Mon, 14 Sep 2020 06:04:28 +0000 (23:04 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 14 Sep 2020 06:08:46 +0000 (23:08 -0700)
commit838fc8083b6241c50b0be105b47006b3ae9c9ed8
tree2630fec693a8476a3f7d2aa08812343391e7b392
parente2c8c4ec48b5cbd4b61edc24d884dfd5ec35ef9d
Input: soc_button_array - add active_low setting to soc_button_info

This is a preparation patch for adding support for Intel INT33D3
ACPI devices. These INT33D3 devices follow yet another Intel defined
(but not documented) ACPI GPIO button standard.

Unlike the ACPI GPIO button devices supported so far, the GPIO used in
the INT33D3 devices is active-high, rather then active-low.

This commit makes setting the gpio_keys_button.active_low flag
configurable through the soc_button_info struct and enables it for all
currently supported devices.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200826150601.12137-2-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/soc_button_array.c