mirror_ubuntu-kernels/include/linux/gpio
Bartosz Golaszewski 370232d096 gpiolib: provide gpiod_to_gpio_device()
Accessing struct gpio_chip backing a GPIO device is only allowed for the
actual providers of that chip.

Similarly to how we introduced gpio_device_find() in order to replace
the abused gpiochip_find(), let's introduce a counterpart to
gpiod_to_chip() that returns a reference to the GPIO device owning the
descriptor. This is done in order to later remove gpiod_to_chip()
entirely.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Peter Rosin <peda@axentia.se>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
2023-10-13 08:50:04 +02:00
..
aspeed.h gpio: aspeed: Add missing header(s) 2022-10-19 17:03:55 +03:00
consumer.h gpio: acpi: remove acpi_get_and_request_gpiod() 2023-10-09 14:47:15 +02:00
driver.h gpiolib: provide gpiod_to_gpio_device() 2023-10-13 08:50:04 +02:00
gpio-reg.h gpio: reg: Add missing header(s) 2022-10-24 12:29:36 +03:00
legacy-of-mm-gpiochip.h gpiolib: split of_mm_gpio_chip out of linux/of_gpio.h 2023-03-06 12:33:01 +02:00
machine.h gpiolib: Clean up headers 2022-10-24 12:30:26 +03:00
property.h gpiolib: add support for software nodes 2022-11-15 11:21:43 +01:00
regmap.h gpio: regmap: move drvdata to config data 2021-06-07 15:39:19 +02:00