aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-12-12 05:44:21 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:44:44 -0500
commitb8ac9fc0e8cda9f9776019c5b0464b0c6d2d4c90 (patch)
treeec16e6a3844396dd67af3f87c915cb272570cc98 /include
parenta2ab3d30005cdce45c2c7e31ad6743ad7975609a (diff)
uio: make uio_info's name and version const
These are only ever assigned constant strings and never modified. This was noticed because Wolfram Sang needed to cast the result of of_get_property() in order to assign it to the name field of a struct uio_info. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/uio_driver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/uio_driver.h b/include/linux/uio_driver.h
index 20be327bfbb4..a0bb6bd2e5c1 100644
--- a/include/linux/uio_driver.h
+++ b/include/linux/uio_driver.h
@@ -76,8 +76,8 @@ struct uio_device;
76 */ 76 */
77struct uio_info { 77struct uio_info {
78 struct uio_device *uio_dev; 78 struct uio_device *uio_dev;
79 char *name; 79 const char *name;
80 char *version; 80 const char *version;
81 struct uio_mem mem[MAX_UIO_MAPS]; 81 struct uio_mem mem[MAX_UIO_MAPS];
82 struct uio_port port[MAX_UIO_PORT_REGIONS]; 82 struct uio_port port[MAX_UIO_PORT_REGIONS];
83 long irq; 83 long irq;