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)
commitc9c20ee3cfce924e7b2a8138df2d6958c500858a
tree1915fd0568101f21540a5262e42cc7666eae2795
parent10ad4845cd3d760c191ab4ecef446b99a6b2c779
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: c5fca485320e ("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