diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:22 -0500 |
commit | a52f362f864f56238c9036f5c56f763a80e2ddd5 (patch) | |
tree | f9288fdfb8988a0ec31f052e89b3dfca1a632e4d /arch/um/drivers/ssl.c | |
parent | 99b0278f95fc9d55adf65133dc678167a88b632a (diff) |
[PATCH] uml: mostly const a structure
The chan_opts structure is mostly const, and needs no locking. Comment the
lack of locking on the one field that can change.
Make all the other fields const. It turned out that console_open_chan didn't
use its chan_opts argument, so that is deleted from the function and its
callers.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/ssl.c')
-rw-r--r-- | arch/um/drivers/ssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c index fe400acc9751..475de52783e4 100644 --- a/arch/um/drivers/ssl.c +++ b/arch/um/drivers/ssl.c | |||
@@ -38,6 +38,7 @@ static void ssl_announce(char *dev_name, int dev) | |||
38 | dev_name); | 38 | dev_name); |
39 | } | 39 | } |
40 | 40 | ||
41 | /* Almost const, except that xterm_title may be changed in an initcall */ | ||
41 | static struct chan_opts opts = { | 42 | static struct chan_opts opts = { |
42 | .announce = ssl_announce, | 43 | .announce = ssl_announce, |
43 | .xterm_title = "Serial Line #%d", | 44 | .xterm_title = "Serial Line #%d", |
@@ -171,7 +172,7 @@ static int ssl_console_setup(struct console *co, char *options) | |||
171 | { | 172 | { |
172 | struct line *line = &serial_lines[co->index]; | 173 | struct line *line = &serial_lines[co->index]; |
173 | 174 | ||
174 | return console_open_chan(line, co, &opts); | 175 | return console_open_chan(line, co); |
175 | } | 176 | } |
176 | 177 | ||
177 | static struct console ssl_cons = { | 178 | static struct console ssl_cons = { |