projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a1ef2
)
of: add const to struct *of_device_id.data
author
Uwe Kleine-König
<
[email protected]
>
Thu, 7 Jun 2012 10:20:14 +0000
(12:20 +0200)
committer
Uwe Kleine-König
<
[email protected]
>
Tue, 11 Sep 2012 06:57:27 +0000
(08:57 +0200)
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 <
[email protected]
>
Signed-off-by: Uwe Kleine-König <
[email protected]
>
include/linux/mod_devicetable.h
patch
|
blob
|
history
diff --git
a/include/linux/mod_devicetable.h
b/include/linux/mod_devicetable.h
index 6955045199b09c006bce030bf21b8b0bdb011d15..78874b36112036dc04084ee0d7062bc98950409a 100644
(file)
--- 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