From: Krzysztof Kozlowski Date: Tue, 20 Feb 2024 07:26:02 +0000 (+0100) Subject: gpio: constify of_phandle_args in of_find_gpio_device_by_xlate() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ee9d5895672fe723a1626a91e4957fd3cd5cfdda;p=linux.git gpio: constify of_phandle_args in of_find_gpio_device_by_xlate() Pointer to the struct of_phandle_args can be made const after gpio_device_find() arguments got constified. This should be part of commit 4a92857d6e83 ("gpio: constify opaque pointer "data" in gpio_device_find()"). Signed-off-by: Krzysztof Kozlowski Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 523b047a28035..e35a9c7da4eef 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -129,7 +129,7 @@ static int of_gpiochip_match_node_and_xlate(struct gpio_chip *chip, } static struct gpio_device * -of_find_gpio_device_by_xlate(struct of_phandle_args *gpiospec) +of_find_gpio_device_by_xlate(const struct of_phandle_args *gpiospec) { return gpio_device_find(gpiospec, of_gpiochip_match_node_and_xlate); }