]> 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)
commit0c3a84d3da556bc988c4da8ee41d549c2124ca51
tree1915fd0568101f21540a5262e42cc7666eae2795
parent2ee9493e9ec9c45787ec42e32fd8724d5418d5a8
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: d336efbdfe2d ("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