]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
tty: hvcs: constify vio_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 17 Aug 2017 13:34:23 +0000 (19:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:22 +0000 (20:51 +0200)
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>
drivers/tty/hvc/hvcs.c

index 79cc5beea2da20fe8525b513af53a323027479d7..7320190a5886ee1498f9f38c9f2141156db42738 100644 (file)
@@ -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"},
        { "", "" }
 };