projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
562e6ef
)
tty: mips_ejtag_fdc: constify mips_cdmm_device_id
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Fri, 25 Aug 2017 18:14:11 +0000
(23:44 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:22 +0000
(20:51 +0200)
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>
drivers/tty/mips_ejtag_fdc.c
patch
|
blob
|
history
diff --git
a/drivers/tty/mips_ejtag_fdc.c
b/drivers/tty/mips_ejtag_fdc.c
index 234123b0c642adac44294201e9fccbe33476756a..a2dab3fb8751fa2956f611172e139b1a7b6ed45b 100644
(file)
--- 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 },
{ }
};