mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
of: add const to struct *of_device_id.data
Drivers should never need to modify the data of a device id. So it can be const which in turn allows more consts in the driver. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
parent
83a1ef2eb6
commit
d7c9a53f13
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ struct of_device_id
|
|||
char type[32];
|
||||
char compatible[128];
|
||||
#ifdef __KERNEL__
|
||||
void *data;
|
||||
const void *data;
|
||||
#else
|
||||
kernel_ulong_t data;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue