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

From: Linus Walleij
Date: Wed Jan 03 2018 - 02:59:32 EST


On Tue, Jan 2, 2018 at 2:28 PM, Julia Lawall <Julia.Lawall@xxxxxxx> 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: Julia Lawall <Julia.Lawall@xxxxxxx>

Patch applied.

Yours,
Linus Walleij