diff options
author | Russell King | 2006-01-21 22:45:50 +0000 |
---|---|---|
committer | Russell King | 2006-01-21 22:45:50 +0000 |
commit | ba899dbc036d24ab6b45faf64e3648a268721cc9 (patch) | |
tree | 8d3ca704ce6cc250d538c712395d357145fa16b6 /include | |
parent | ca740803856f23dbc5b1872039291231bc131ecb (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')
-rw-r--r-- | include/linux/serial_core.h | 2 |
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 { 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 */ |