]> git.ipfire.org Git - thirdparty/linux.git/commit
media: solo6x10: remove unneeded GPIO direction setters
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 16 Jun 2025 07:18:51 +0000 (09:18 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 17 Jun 2025 08:35:12 +0000 (10:35 +0200)
commit94bf84c7fe2e6fa17a50c1296551a53fd2a29e37
tree66a6111afed1c3231133a75069378ee4b5bcc9c2
parent13518ae3203fdbb86d05b9e9916d4907cea518a4
media: solo6x10: remove unneeded GPIO direction setters

GPIO core already handles missing direction_input/output() callbacks.
The ones in this driver also effectively return magic numbers which is
not optimal either (the number accidentally corresponds with -EPERM which
is different from the number GPIOLIB returns and so inconsistent). Just
remove them.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/pci/solo6x10/solo6x10-gpio.c