We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8084a8 commit c9ccb88Copy full SHA for c9ccb88
drivers/input/touchscreen/ads7846.c
@@ -1021,7 +1021,7 @@ static int ads7846_setup_pendown(struct spi_device *spi,
1021
if (pdata->get_pendown_state) {
1022
ts->get_pendown_state = pdata->get_pendown_state;
1023
} else {
1024
- ts->gpio_pendown = gpiod_get(&spi->dev, "pendown", GPIOD_IN);
+ ts->gpio_pendown = devm_gpiod_get(&spi->dev, "pendown", GPIOD_IN);
1025
if (IS_ERR(ts->gpio_pendown)) {
1026
dev_err(&spi->dev, "failed to request pendown GPIO\n");
1027
return PTR_ERR(ts->gpio_pendown);
0 commit comments