Thread (16 messages) 16 messages, 7 authors, 2018-01-17

[PATCH 02/12] pinctrl: at91-pio4: account for const type of of_device_id.data

From: Linus Walleij <hidden>
Date: 2018-01-03 07:58:27
Also in: kernel-janitors, linux-gpio, lkml

On Tue, Jan 2, 2018 at 2:27 PM, Julia Lawall [off-list ref] wrote:
This driver creates a const structure that it stores in the data field
of an of_device_id array.

Adding const to the declaration of the location that receives the
const value from the data field ensures that the compiler will
continue to check that the value is not modified.  Furthermore, the
const-discarding cast on the extraction from the data field is no
longer needed.

Done using Coccinelle.

Signed-off-by: Julia Lawall <redacted>
Patch applied.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help