]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: axp209: account for const type of of_device_id.data
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 2 Jan 2018 13:28:04 +0000 (14:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Jan 2018 07:15:47 +0000 (08:15 +0100)
commit4030f70de4af8392cb72acb54917b7bf99baea4f
tree154a769ba587a39d83f9da28676c6ba682523b09
parente2bafa3994faba615793c513e1349d063b2774b1
pinctrl: axp209: account for const type of of_device_id.data

The return value of of_device_get_match_data has type const void *.
The desc field of the pctl structure also has a const type, so there
is no need for the const-discarding cast between them.

Done using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-axp209.c