aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2025-06-20 12:58:01 +0000
committerBartosz Golaszewski <[email protected]>2025-06-30 06:58:26 +0000
commit08ad63bbd681ae4eeb50644564435035c38e5795 (patch)
tree26a6cca3cc0c653e53bcfe42e47a7bbaff5cea5f /drivers/gpio/gpiolib.c
parentgpio: rcar: Use new line value setter callbacks (diff)
downloadkernel-08ad63bbd681ae4eeb50644564435035c38e5795.tar.gz
kernel-08ad63bbd681ae4eeb50644564435035c38e5795.zip
gpio: constify arguments of gpiod_is_equal()
This function is not meant to modify the GPIO descriptors in any way so we can safely constify both arguments. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 5b0b4fc97543..6b4f94c3887f 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -286,7 +286,7 @@ EXPORT_SYMBOL_GPL(gpiod_to_gpio_device);
* Returns:
* True if the descriptors refer to the same physical pin. False otherwise.
*/
-bool gpiod_is_equal(struct gpio_desc *desc, struct gpio_desc *other)
+bool gpiod_is_equal(const struct gpio_desc *desc, const struct gpio_desc *other)
{
return desc == other;
}