diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 19:04:23 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 20:51:22 +0200 |
commit | a846c3e5f338206c84e292a57abde0b06f1777c8 (patch) | |
tree | f10b10775a81fceb31f9caef3914eec5f9f5b228 /drivers/tty | |
parent | 7298bd1d7b07b55fe3fe9c84906f2eb065913701 (diff) | |
download | linux-a846c3e5f338206c84e292a57abde0b06f1777c8.tar.gz linux-a846c3e5f338206c84e292a57abde0b06f1777c8.tar.bz2 linux-a846c3e5f338206c84e292a57abde0b06f1777c8.zip |
tty: hvcs: constify vio_device_id
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by <asm/vio.h> work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/hvc/hvcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index 79cc5beea2da..7320190a5886 100644 --- a/drivers/tty/hvc/hvcs.c +++ b/drivers/tty/hvc/hvcs.c @@ -675,7 +675,7 @@ static int khvcsd(void *unused) return 0; } -static struct vio_device_id hvcs_driver_table[] = { +static const struct vio_device_id hvcs_driver_table[] = { {"serial-server", "hvterm2"}, { "", "" } }; |