summaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-17 19:04:22 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 20:51:22 +0200
commit7298bd1d7b07b55fe3fe9c84906f2eb065913701 (patch)
treedb77ce29e990362fbe3a691da112ba02f68016b8 /drivers/tty/hvc
parentb4941f063285b598b123352f7f234dcec3c71810 (diff)
downloadlinux-7298bd1d7b07b55fe3fe9c84906f2eb065913701.tar.gz
linux-7298bd1d7b07b55fe3fe9c84906f2eb065913701.tar.bz2
linux-7298bd1d7b07b55fe3fe9c84906f2eb065913701.zip
tty: hvc_vio: 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/hvc')
-rw-r--r--drivers/tty/hvc/hvc_vio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
index 78b003be7f67..653f99271865 100644
--- a/drivers/tty/hvc/hvc_vio.c
+++ b/drivers/tty/hvc/hvc_vio.c
@@ -53,7 +53,7 @@
static const char hvc_driver_name[] = "hvc_console";
-static struct vio_device_id hvc_driver_table[] = {
+static const struct vio_device_id hvc_driver_table[] = {
{"serial", "hvterm1"},
#ifndef HVC_OLD_HVSI
{"serial", "hvterm-protocol"},