From: Andy Shevchenko Date: Mon, 31 May 2021 05:25:01 +0000 (-0700) Subject: Input: resistive-adc-touch - replace OF headers with proper ones X-Git-Tag: v6.6.17~3754^2~107^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08729298c4eea5a9bbc0598d92ff47638a97a1ae;p=platform%2Fkernel%2Flinux-rpi.git Input: resistive-adc-touch - replace OF headers with proper ones The driver is actually OF independent and doesn't need anything from OF (*). Replace OF headers with mod_devicetable.h and property.h. *) use of of_match_ptr() is actually wrong here, since it may provoke a compiler to warn about unused variable. Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20210528151113.85943-2-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/resistive-adc-touch.c b/drivers/input/touchscreen/resistive-adc-touch.c index 0353400..ea1884f 100644 --- a/drivers/input/touchscreen/resistive-adc-touch.c +++ b/drivers/input/touchscreen/resistive-adc-touch.c @@ -13,10 +13,10 @@ #include #include #include +#include #include -#include -#include #include +#include #define DRIVER_NAME "resistive-adc-touch" #define GRTS_DEFAULT_PRESSURE_MIN 50000 @@ -307,7 +307,7 @@ static struct platform_driver grts_driver = { .probe = grts_probe, .driver = { .name = DRIVER_NAME, - .of_match_table = of_match_ptr(grts_of_match), + .of_match_table = grts_of_match, }, };