Skip to content

Commit ee9d589

Browse files
krzkBartosz Golaszewski
authored andcommitted
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 4a92857 ("gpio: constify opaque pointer "data" in gpio_device_find()"). Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 24ba441 commit ee9d589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpiolib-of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static int of_gpiochip_match_node_and_xlate(struct gpio_chip *chip,
129129
}
130130

131131
static struct gpio_device *
132-
of_find_gpio_device_by_xlate(struct of_phandle_args *gpiospec)
132+
of_find_gpio_device_by_xlate(const struct of_phandle_args *gpiospec)
133133
{
134134
return gpio_device_find(gpiospec, of_gpiochip_match_node_and_xlate);
135135
}

0 commit comments

Comments
 (0)