Commit 924f5494 authored by Julia Lawall's avatar Julia Lawall Committed by Linus Walleij

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Acked-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9b8ee3c0
...@@ -997,11 +997,11 @@ static int armada_37xx_pinctrl_register(struct platform_device *pdev, ...@@ -997,11 +997,11 @@ static int armada_37xx_pinctrl_register(struct platform_device *pdev,
static const struct of_device_id armada_37xx_pinctrl_of_match[] = { static const struct of_device_id armada_37xx_pinctrl_of_match[] = {
{ {
.compatible = "marvell,armada3710-sb-pinctrl", .compatible = "marvell,armada3710-sb-pinctrl",
.data = (void *)&armada_37xx_pin_sb, .data = &armada_37xx_pin_sb,
}, },
{ {
.compatible = "marvell,armada3710-nb-pinctrl", .compatible = "marvell,armada3710-nb-pinctrl",
.data = (void *)&armada_37xx_pin_nb, .data = &armada_37xx_pin_nb,
}, },
{ }, { },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment