linux/include/linux/gpio
Bartosz Golaszewski 265daffe78 gpio: provide gpiod_is_equal()
There are users in the kernel that directly compare raw GPIO descriptor
pointers in order to determine whether they refer to the same physical
GPIO pin. This accidentally works like this but is not guaranteed by any
API contract. Let's provide a comparator function that hides the actual
logic.

Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250407-gpiod-is-equal-v1-1-7d85f568ae6e@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
History 2025-04-09 09:32:06 +02:00
..
aspeed.h gpio: aspeed: Add missing header(s) 2022-10-19 17:03:55 +03:00
consumer.h gpio: provide gpiod_is_equal() 2025-04-09 09:32:06 +02:00
driver.h gpiolib: fix kerneldoc 2025-03-06 09:25:06 +01:00
gpio-nomadik.h drivers/gpio/nomadik: move dummy nmk_gpio_dbg_show_one() to header 2024-03-12 12:53:35 +01: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 spi: Updates for v6.10 2024-05-14 14:41:01 -07:00
regmap.h gpio: regmap: Allow ngpio to be read from the property 2025-02-21 09:42:45 +01:00