summaryrefslogtreecommitdiff
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-06-07 14:20:14 +0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-09-11 10:57:27 +0400
commitd7c9a53f13cf4b273b220934167c7630c3362563 (patch)
tree2ed58ccf091c84a45831e6edf897fb6a7548212d /include/linux/mod_devicetable.h
parent83a1ef2eb68cffda5940568b8c3f48daa5ab9d0c (diff)
downloadlinux-d7c9a53f13cf4b273b220934167c7630c3362563.tar.xz
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.h2
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
char type[32];
char compatible[128];
#ifdef __KERNEL__
- void *data;
+ const void *data;
#else
kernel_ulong_t data;
#endif