mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
misc: ti-fpc202: remove unneeded direction check
As of commit 92ac7de317 ("gpiolib: don't allow setting values on input
lines"), the GPIO core makes sure values cannot be set on input lines.
Remove the unnecessary check.
Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250717130357.53491-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
27cb8f702e
commit
db7897ad60
|
|
@ -125,9 +125,6 @@ static void fpc202_gpio_set(struct gpio_chip *chip, unsigned int offset,
|
|||
int ret;
|
||||
u8 val;
|
||||
|
||||
if (fpc202_gpio_get_dir(offset) == GPIO_LINE_DIRECTION_IN)
|
||||
return;
|
||||
|
||||
ret = fpc202_read(priv, FPC202_REG_OUT_A_OUT_B_VAL);
|
||||
if (ret < 0) {
|
||||
dev_err(&priv->client->dev, "Failed to set GPIO %d value! err %d\n", offset, ret);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user