Re: [PATCH 08/12] pinctrl: axp209: account for const type of of_device_id.data

2018-01-02 Thread Linus Walleij
On Tue, Jan 2, 2018 at 2:28 PM, Julia Lawall wrote: > 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

Re: [PATCH 08/12] pinctrl: axp209: account for const type of of_device_id.data

2018-01-02 Thread Linus Walleij
On Tue, Jan 2, 2018 at 2:28 PM, Julia Lawall wrote: > 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:

[PATCH 08/12] pinctrl: axp209: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
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 ---

[PATCH 08/12] pinctrl: axp209: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
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 --- drivers/pinctrl/pinctrl-axp209.c |2 +- 1