[PATCH 0/2] gpio: improve gpiod_is_equal()

From: Bartosz Golaszewski
Date: Fri Jun 20 2025 - 08:58:44 EST


This short series contains small improvements to the gpiod_is_equal()
GPIO descriptor comparator added last cycle.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
---
Bartosz Golaszewski (2):
gpio: constify arguments of gpiod_is_equal()
gpio: make gpiod_is_equal() arguments stricter

drivers/gpio/gpiolib.c | 29 +++++++++++++++--------------
include/linux/gpio/consumer.h | 5 +++--
2 files changed, 18 insertions(+), 16 deletions(-)
---
base-commit: 2c923c845768a0f0e34b8161d70bc96525385782
change-id: 20250620-gpiod-is-equal-improv-a6f0995e3cc5

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>