mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: Gregory CLEMENT <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
9b8ee3c0f6
commit
924f5494da
1 changed files with 2 additions and 2 deletions
|
|
@ -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[] = {
|
||||
{
|
||||
.compatible = "marvell,armada3710-sb-pinctrl",
|
||||
.data = (void *)&armada_37xx_pin_sb,
|
||||
.data = &armada_37xx_pin_sb,
|
||||
},
|
||||
{
|
||||
.compatible = "marvell,armada3710-nb-pinctrl",
|
||||
.data = (void *)&armada_37xx_pin_nb,
|
||||
.data = &armada_37xx_pin_nb,
|
||||
},
|
||||
{ },
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue