summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-01-21 22:45:50 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-01-21 22:45:50 +0000
commitba899dbc036d24ab6b45faf64e3648a268721cc9 (patch)
tree8d3ca704ce6cc250d538c712395d357145fa16b6 /include
parentca740803856f23dbc5b1872039291231bc131ecb (diff)
downloadlinux-3.10-ba899dbc036d24ab6b45faf64e3648a268721cc9.tar.gz
linux-3.10-ba899dbc036d24ab6b45faf64e3648a268721cc9.tar.bz2
linux-3.10-ba899dbc036d24ab6b45faf64e3648a268721cc9.zip
[SERIAL] Make port->ops constant
No one should write to the port->ops structure, so make it constant. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/serial_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index f3af47713a4..b74ff34469b 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -257,7 +257,7 @@ struct uart_port {
unsigned int mctrl; /* current modem ctrl settings */
unsigned int timeout; /* character-based timeout */
unsigned int type; /* port type */
- struct uart_ops *ops;
+ const struct uart_ops *ops;
unsigned int custom_divisor;
unsigned int line; /* port index */
unsigned long mapbase; /* for ioremap */