From: Julia Lawall Date: Tue, 2 Jan 2018 13:28:01 +0000 (+0100) Subject: pinctrl: armada-37xx: account for const type of of_device_id.data X-Git-Tag: v4.16-rc1~90^2~25 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=924f5494da610664cc5a9fccc12d32fbbc6214d3;p=users%2Fjedix%2Flinux-maple.git 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 Acked-by: Gregory CLEMENT Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index d45af31b86b41..7edebd1e8c291 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, 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, }, { }, };