gpio: remove the RW semaphore from the GPIO device
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 24 Jan 2024 16:02:03 +0000 (17:02 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 12 Feb 2024 10:00:55 +0000 (11:00 +0100)
commitf067372c6a3c3b0c5cc775157408970b8fa6c010
tree0d3d05240412387176e1ba2c426e46726ab380bb
parentd83cee3d2bb131c7fca7e19f1e33dc7530fd7083
gpio: remove the RW semaphore from the GPIO device

With all accesses to gdev->chip being protected with SRCU, we can now
remove the RW-semaphore specific to the character device which
fulfilled the same role up to this point.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h