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/line.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/line.c')
-rw-r--r-- | arch/um/drivers/line.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index ebebaabb78ad..563ce7690a1e 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c | |||
@@ -251,7 +251,7 @@ void line_set_termios(struct tty_struct *tty, struct termios * old) | |||
251 | /* nothing */ | 251 | /* nothing */ |
252 | } | 252 | } |
253 | 253 | ||
254 | static struct { | 254 | static const struct { |
255 | int cmd; | 255 | int cmd; |
256 | char *level; | 256 | char *level; |
257 | char *name; | 257 | char *name; |
@@ -405,7 +405,7 @@ static irqreturn_t line_write_interrupt(int irq, void *data, | |||
405 | 405 | ||
406 | int line_setup_irq(int fd, int input, int output, struct line *line, void *data) | 406 | int line_setup_irq(int fd, int input, int output, struct line *line, void *data) |
407 | { | 407 | { |
408 | struct line_driver *driver = line->driver; | 408 | const struct line_driver *driver = line->driver; |
409 | int err = 0, flags = IRQF_DISABLED | IRQF_SHARED | IRQF_SAMPLE_RANDOM; | 409 | int err = 0, flags = IRQF_DISABLED | IRQF_SHARED | IRQF_SAMPLE_RANDOM; |
410 | 410 | ||
411 | if (input) | 411 | if (input) |
@@ -558,7 +558,7 @@ int line_setup(struct line *lines, unsigned int num, char *init) | |||
558 | } | 558 | } |
559 | 559 | ||
560 | int line_config(struct line *lines, unsigned int num, char *str, | 560 | int line_config(struct line *lines, unsigned int num, char *str, |
561 | struct chan_opts *opts) | 561 | const struct chan_opts *opts) |
562 | { | 562 | { |
563 | struct line *line; | 563 | struct line *line; |
564 | char *new; | 564 | char *new; |