gpio: don't compare raw GPIO descriptor pointers directly
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20250402-gpiod-is-equal-4e28bb8ab842Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | gpio: provide gpiod_is_equal()drivers/ include/ | +23 | 3 replies | |
| 2/2 | regulator: don't compare raw GPIO descriptor pointersdrivers/ | +1 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Mark Brown |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] gpio: don't compare raw GPIO descriptor pointers directly
Handling of shared GPIOs in the kernel needs some improvements. Let's start with a simple change of not comparing GPIO descriptor pointers directly as there's nothing that guarantees that the same physical pin will always be represented by a single GPIO descriptor obtained by calling gpiod_get().
For merging: I suggest to take patch 1/2 through the GPIO tree and provide an immutable tag for the regulator tree.
---
Bartosz Golaszewski (2):
gpio: provide gpiod_is_equal()
regulator: don't compare raw GPIO descriptor pointers
drivers/gpio/gpiolib.c | 14 ++++++++++++++ drivers/regulator/core.c | 2 +- include/linux/gpio/consumer.h | 9 +++++++++ 3 files changed, 24 insertions(+), 1 deletion(-)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250402-gpiod-is-equal-4e28bb8ab842
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>