mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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>
This commit is contained in:
parent
a2ab3d3000
commit
b8ac9fc0e8
2 changed files with 4 additions and 4 deletions
|
@ -76,8 +76,8 @@ struct uio_device;
|
|||
*/
|
||||
struct uio_info {
|
||||
struct uio_device *uio_dev;
|
||||
char *name;
|
||||
char *version;
|
||||
const char *name;
|
||||
const char *version;
|
||||
struct uio_mem mem[MAX_UIO_MAPS];
|
||||
struct uio_port port[MAX_UIO_PORT_REGIONS];
|
||||
long irq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue