diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-01-02 08:28:04 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-08 02:15:47 -0500 |
commit | 9b8ee3c0f6b27f9fb5dbc382afa7ef1f05fed491 (patch) | |
tree | 154a769ba587a39d83f9da28676c6ba682523b09 /drivers/pinctrl/pinctrl-axp209.c | |
parent | 8b74c7d3e30fdd3f2c083d3becae7be6cd38989f (diff) |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-axp209.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-axp209.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index 510a2821e910..1231bbbfa744 100644 --- a/drivers/pinctrl/pinctrl-axp209.c +++ b/drivers/pinctrl/pinctrl-axp209.c | |||
@@ -414,7 +414,7 @@ static int axp20x_pctl_probe(struct platform_device *pdev) | |||
414 | pctl->chip.direction_input = axp20x_gpio_input; | 414 | pctl->chip.direction_input = axp20x_gpio_input; |
415 | pctl->chip.direction_output = axp20x_gpio_output; | 415 | pctl->chip.direction_output = axp20x_gpio_output; |
416 | 416 | ||
417 | pctl->desc = (struct axp20x_pctrl_desc *)of_device_get_match_data(dev); | 417 | pctl->desc = of_device_get_match_data(dev); |
418 | 418 | ||
419 | pctl->chip.ngpio = pctl->desc->npins; | 419 | pctl->chip.ngpio = pctl->desc->npins; |
420 | 420 | ||