mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
pinctrl: axp209: account for const type of of_device_id.data
The return value of of_device_get_match_data has type const void *. The desc field of the pctl structure also has a const type, so there is no need for the const-discarding cast between them. Done using Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8b74c7d3e3
commit
9b8ee3c0f6
@ -414,7 +414,7 @@ static int axp20x_pctl_probe(struct platform_device *pdev)
|
||||
pctl->chip.direction_input = axp20x_gpio_input;
|
||||
pctl->chip.direction_output = axp20x_gpio_output;
|
||||
|
||||
pctl->desc = (struct axp20x_pctrl_desc *)of_device_get_match_data(dev);
|
||||
pctl->desc = of_device_get_match_data(dev);
|
||||
|
||||
pctl->chip.ngpio = pctl->desc->npins;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user