]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7c48d8710538fd558a977d7b2df50c5d8ff2565
tree2630fec693a8476a3f7d2aa08812343391e7b392
parentb629dbbdb3f8c0785174f772dc4a4c78a8f1d0da
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