aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-01-21 17:45:50 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-01-21 17:45:50 -0500
commitba899dbc036d24ab6b45faf64e3648a268721cc9 (patch)
tree8d3ca704ce6cc250d538c712395d357145fa16b6 /include/linux
parentca740803856f23dbc5b1872039291231bc131ecb (diff)
[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/linux')
-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 f3af47713a4e..b74ff34469b9 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -257,7 +257,7 @@ struct uart_port {
257 unsigned int mctrl; /* current modem ctrl settings */ 257 unsigned int mctrl; /* current modem ctrl settings */
258 unsigned int timeout; /* character-based timeout */ 258 unsigned int timeout; /* character-based timeout */
259 unsigned int type; /* port type */ 259 unsigned int type; /* port type */
260 struct uart_ops *ops; 260 const struct uart_ops *ops;
261 unsigned int custom_divisor; 261 unsigned int custom_divisor;
262 unsigned int line; /* port index */ 262 unsigned int line; /* port index */
263 unsigned long mapbase; /* for ioremap */ 263 unsigned long mapbase; /* for ioremap */