aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-25 23:44:11 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 20:51:22 +0200
commitb4941f063285b598b123352f7f234dcec3c71810 (patch)
treec268976b7df3a6d931979f997179073538c4a897 /drivers/tty
parentIntroduce 8250_men_mcb (diff)
downloadlinux-dev-b4941f063285b598b123352f7f234dcec3c71810.tar.xz
linux-dev-b4941f063285b598b123352f7f234dcec3c71810.zip
tty: mips_ejtag_fdc: constify mips_cdmm_device_id
mips_cdmm_device_id are not supposed to change at runtime. mips_cdmm_driver is working with const 'id_table'. So mark the non-const mips_cdmm_device_id 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/mips_ejtag_fdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/mips_ejtag_fdc.c b/drivers/tty/mips_ejtag_fdc.c
index 234123b0c642..a2dab3fb8751 100644
--- a/drivers/tty/mips_ejtag_fdc.c
+++ b/drivers/tty/mips_ejtag_fdc.c
@@ -1110,7 +1110,7 @@ out:
return ret;
}
-static struct mips_cdmm_device_id mips_ejtag_fdc_tty_ids[] = {
+static const struct mips_cdmm_device_id mips_ejtag_fdc_tty_ids[] = {
{ .type = 0xfd },
{ }
};