summaryrefslogtreecommitdiffstats
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-03-31 21:35:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 18:51:57 +0200
commit2e94d5ae5da1d2e798045a53b5e234a42b090908 (patch)
tree3b59a3d0b815795c8281d63263dbe446eac396a2 /include/linux/serial_core.h
parent6fe729c4bdae41b4c5a5ff21312f021a48c69399 (diff)
downloadlinux-2e94d5ae5da1d2e798045a53b5e234a42b090908.tar.gz
linux-2e94d5ae5da1d2e798045a53b5e234a42b090908.tar.bz2
linux-2e94d5ae5da1d2e798045a53b5e234a42b090908.zip
serial: core: constify struct uart_port {name} field
Don't allow modifications of port name. It's serial core's business only. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
-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 60530678c633..64d892f1e5cd 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -247,7 +247,7 @@ struct uart_port {
unsigned char suspended;
unsigned char irq_wake;
unsigned char unused[2];
- char *name; /* port name */
+ const char *name; /* port name */
struct attribute_group *attr_group; /* port specific attributes */
const struct attribute_group **tty_groups; /* all attributes (serial core use only) */
struct serial_rs485 rs485;