]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: armada-37xx: account for const type of of_device_id.data
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 2 Jan 2018 13:28:01 +0000 (14:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Jan 2018 07:15:48 +0000 (08:15 +0100)
commit5f7c3a571450afe888252934e91521efc1943e6a
tree8a47ea5f854d7e38d1c2155e9b04d7f716898ce4
parent4030f70de4af8392cb72acb54917b7bf99baea4f
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>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c