diff options
author | 2017-08-17 19:04:22 +0530 | |
---|---|---|
committer | 2017-08-28 20:51:22 +0200 | |
commit | 7298bd1d7b07b55fe3fe9c84906f2eb065913701 (patch) | |
tree | db77ce29e990362fbe3a691da112ba02f68016b8 /drivers/tty | |
parent | tty: mips_ejtag_fdc: constify mips_cdmm_device_id (diff) | |
download | linux-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')
-rw-r--r-- | drivers/tty/hvc/hvc_vio.c | 2 |
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"}, |