misc: ti-fpc202: remove unneeded direction check
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 17 Jul 2025 13:03:55 +0000 (15:03 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 18 Jul 2025 07:35:11 +0000 (09:35 +0200)
commitdb7897ad60fd7d7bf471bc1c49e3d01fefadade3
treeb1be5a6a2093513e54c206a5e7d80fc4fb34cd84
parent27cb8f702eb789f97f7a8bd5a91d76c65a937b2f
misc: ti-fpc202: remove unneeded direction check

As of commit 92ac7de3175e3 ("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>
drivers/misc/ti_fpc202.c