aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-02-16 14:52:17 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-02-17 20:02:22 +0100
commit4a92857d6e8383eca6d661538bb25dc7004fd391 (patch)
tree93bafe81c235f7dea0eaadc842b99b219ed0eda7 /drivers/gpio
parent91510d5959ad9eac451685e3bfc8385b89c23908 (diff)
downloadlinux-4a92857d6e8383eca6d661538bb25dc7004fd391.tar.gz
gpio: constify opaque pointer "data" in gpio_device_find()
The opaque pointer "data" in each match function used by gpio_device_find() is a pointer to const, thus the same argument passed to gpio_device_find() can adjusted similarly. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
-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 02be0ba1a402a3..e4dd13d81b4d8c 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1171,7 +1171,7 @@ EXPORT_SYMBOL_GPL(gpiochip_remove);
* If the function returns non-NULL, the returned reference must be freed by
* the caller using gpio_device_put().
*/
-struct gpio_device *gpio_device_find(void *data,
+struct gpio_device *gpio_device_find(const void *data,
int (*match)(struct gpio_chip *gc,
const void *data))
{