Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: ads7846 - fix gpio_pendown configuration

The pendown gpio was requested but not configured for input.
Configure it for input.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Igor Grinberg and committed by
Dmitry Torokhov
1201e7e6 ebcaaad9

+7
+7
drivers/input/touchscreen/ads7846.c
··· 966 966 pdata->gpio_pendown); 967 967 return err; 968 968 } 969 + err = gpio_direction_input(pdata->gpio_pendown); 970 + if (err) { 971 + dev_err(&spi->dev, "failed to setup pendown GPIO%d\n", 972 + pdata->gpio_pendown); 973 + gpio_free(pdata->gpio_pendown); 974 + return err; 975 + } 969 976 970 977 ts->gpio_pendown = pdata->gpio_pendown; 971 978