]> 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)
commitc6f9ccd03b28720b9ff7f6c1f0b5b0e2b2ddbfd3
tree8a47ea5f854d7e38d1c2155e9b04d7f716898ce4
parent1c247ec1d6b80451804134088fed44316cc84fb0
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