Re: [PATCH 05/12] pinctrl: armada-37xx: account for const type of of_device_id.data

From: Linus Walleij
Date: Wed Jan 03 2018 - 03:03:47 EST


On Tue, Jan 2, 2018 at 2:28 PM, Julia Lawall <Julia.Lawall@xxxxxxx> wrote:

> 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@xxxxxxx>

Patch applied with Gregory's ACK.

Yours,
Linus Walleij