diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-01-02 08:28:01 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-08 02:15:48 -0500 |
commit | 924f5494da610664cc5a9fccc12d32fbbc6214d3 (patch) | |
tree | 8a47ea5f854d7e38d1c2155e9b04d7f716898ce4 | |
parent | 9b8ee3c0f6b27f9fb5dbc382afa7ef1f05fed491 (diff) |
pinctrl: armada-37xx: account for const type of of_device_id.data
The data field of an of_device_id structure has type const void *, so
there is no need for a const-discarding cast when putting const values
into such a structure.
Done using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index d45af31b86b4..7edebd1e8c29 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | |||
@@ -997,11 +997,11 @@ static int armada_37xx_pinctrl_register(struct platform_device *pdev, | |||
997 | static const struct of_device_id armada_37xx_pinctrl_of_match[] = { | 997 | static const struct of_device_id armada_37xx_pinctrl_of_match[] = { |
998 | { | 998 | { |
999 | .compatible = "marvell,armada3710-sb-pinctrl", | 999 | .compatible = "marvell,armada3710-sb-pinctrl", |
1000 | .data = (void *)&armada_37xx_pin_sb, | 1000 | .data = &armada_37xx_pin_sb, |
1001 | }, | 1001 | }, |
1002 | { | 1002 | { |
1003 | .compatible = "marvell,armada3710-nb-pinctrl", | 1003 | .compatible = "marvell,armada3710-nb-pinctrl", |
1004 | .data = (void *)&armada_37xx_pin_nb, | 1004 | .data = &armada_37xx_pin_nb, |
1005 | }, | 1005 | }, |
1006 | { }, | 1006 | { }, |
1007 | }; | 1007 | }; |