diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-27 04:50:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:15 -0400 |
commit | 5e7672ec3f059f764fcc5c78216e24bb16c44dba (patch) | |
tree | ea0e36468e19fbc3c9ff79d6378b5d8e7eef8ea3 /arch/um/drivers/port_user.c | |
parent | 48af05ed54ddf8dc6eceea4f009e063d7e784b37 (diff) |
[PATCH] uml: const more data
Make lots of structures const in order to make it obvious that they need no
locking.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/port_user.c')
-rw-r--r-- | arch/um/drivers/port_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/port_user.c b/arch/um/drivers/port_user.c index c43e8bb32502..f2e8fc42ecc2 100644 --- a/arch/um/drivers/port_user.c +++ b/arch/um/drivers/port_user.c | |||
@@ -27,7 +27,7 @@ struct port_chan { | |||
27 | char dev[sizeof("32768\0")]; | 27 | char dev[sizeof("32768\0")]; |
28 | }; | 28 | }; |
29 | 29 | ||
30 | static void *port_init(char *str, int device, struct chan_opts *opts) | 30 | static void *port_init(char *str, int device, const struct chan_opts *opts) |
31 | { | 31 | { |
32 | struct port_chan *data; | 32 | struct port_chan *data; |
33 | void *kern_data; | 33 | void *kern_data; |
@@ -100,7 +100,7 @@ static void port_close(int fd, void *d) | |||
100 | os_close_file(fd); | 100 | os_close_file(fd); |
101 | } | 101 | } |
102 | 102 | ||
103 | struct chan_ops port_ops = { | 103 | const struct chan_ops port_ops = { |
104 | .type = "port", | 104 | .type = "port", |
105 | .init = port_init, | 105 | .init = port_init, |
106 | .open = port_open, | 106 | .open = port_open, |