]> git.baikalelectronics.ru Git - kernel.git/commit
Input: goodix - fix compilation when ACPI support is disabled
authorHans de Goede <hdegoede@redhat.com>
Wed, 1 Apr 2020 19:53:36 +0000 (12:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Apr 2020 20:05:29 +0000 (13:05 -0700)
commit16050f497833b2e1bae81e8df67e860f89a37c50
tree1915fd0568101f21540a5262e42cc7666eae2795
parenteccfd8407b91aa2c93d27194df2af615163803d0
Input: goodix - fix compilation when ACPI support is disabled

acpi_evaluate_object() and acpi_execute_simple_method() are not part of
the group of ACPI related functions which get stubbed by
include/linux/acpi.h when ACPI support is disabled, so the
IRQ_PIN_ACCESS_ACPI_METHOD handling code must be stubbed out.

For consistency use the same #if condition as which is used to replace
goodix_add_acpi_gpio_mappings with a stub.

Fixes: dfda3fe35c03 ("Input: goodix - add support for controlling the IRQ pin through ACPI methods")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200401014529.GL75430@dtor-ws
[dtor: stubbed out the ACPI method accessors]
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c