Input: ads7846 - Fix usage of match data
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Jun 2023 19:13:04 +0000 (21:13 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 7 Jun 2023 10:56:01 +0000 (12:56 +0200)
commit8f7913c04f6a7b90bcf998ece17395d7090f6d44
treec98a343ea8b91d9c0460e157b5926cd056efb7ff
parent0b47a62ea65e1836945f09eafd99d0dd2bf92093
Input: ads7846 - Fix usage of match data

device_get_match_data() returns the match data directly, fix
this up and fix the probe crash.

Fixes: 767d83361aaa ("Input: ads7846 - Convert to use software nodes")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20230606191304.3804174-1-linus.walleij@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/input/touchscreen/ads7846.c