diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-06-07 06:20:14 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-09-11 02:57:27 -0400 |
commit | d7c9a53f13cf4b273b220934167c7630c3362563 (patch) | |
tree | 2ed58ccf091c84a45831e6edf897fb6a7548212d /include/linux/mod_devicetable.h | |
parent | 83a1ef2eb68cffda5940568b8c3f48daa5ab9d0c (diff) |
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>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r-- | include/linux/mod_devicetable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 6955045199b0..78874b361120 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
@@ -232,7 +232,7 @@ struct of_device_id | |||
232 | char type[32]; | 232 | char type[32]; |
233 | char compatible[128]; | 233 | char compatible[128]; |
234 | #ifdef __KERNEL__ | 234 | #ifdef __KERNEL__ |
235 | void *data; | 235 | const void *data; |
236 | #else | 236 | #else |
237 | kernel_ulong_t data; | 237 | kernel_ulong_t data; |
238 | #endif | 238 | #endif |