aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 13:54:56 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 14:51:21 -0400
commit829374f544b3b9499300f48c741cbc085ce06c14 (patch)
tree207261fb9bd8a42f2c038631aab1871613d35a04
parent0d474f7fad3b20a51394f5eb19d08b49d4e9ebc8 (diff)
tty: mux: constify parisc_device_id
parisc_device_id are not supposed to change at runtime. All functions working with parisc_device_id provided by <asm/parisc-device.h> work with const parisc_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>
-rw-r--r--drivers/tty/serial/mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c
index 8a4be4b73723..6afe83dad49f 100644
--- a/drivers/tty/serial/mux.c
+++ b/drivers/tty/serial/mux.c
@@ -536,13 +536,13 @@ static int mux_remove(struct parisc_device *dev)
536 * This table only contains the parisc_device_id of known builtin mux 536 * This table only contains the parisc_device_id of known builtin mux
537 * devices. All other mux cards will be detected by the generic mux_tbl. 537 * devices. All other mux cards will be detected by the generic mux_tbl.
538 */ 538 */
539static struct parisc_device_id builtin_mux_tbl[] = { 539static const struct parisc_device_id builtin_mux_tbl[] = {
540 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x15, 0x0000D }, /* All K-class */ 540 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x15, 0x0000D }, /* All K-class */
541 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x44, 0x0000D }, /* E35, E45, and E55 */ 541 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, 0x44, 0x0000D }, /* E35, E45, and E55 */
542 { 0, } 542 { 0, }
543}; 543};
544 544
545static struct parisc_device_id mux_tbl[] = { 545static const struct parisc_device_id mux_tbl[] = {
546 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0000D }, 546 { HPHW_A_DIRECT, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0000D },
547 { 0, } 547 { 0, }
548}; 548};