diff options
-rw-r--r-- | drivers/serial/8250.c | 2 | ||||
-rw-r--r-- | drivers/serial/8250_pci.c | 2 | ||||
-rw-r--r-- | drivers/serial/serial_core.c | 2 | ||||
-rw-r--r-- | drivers/serial/serial_cs.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index e08510d09ff6..d2bcd1f87cd6 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -102,7 +102,7 @@ static unsigned int share_irqs = SERIAL8250_SHARE_IRQS; | |||
102 | #define SERIAL_PORT_DFNS | 102 | #define SERIAL_PORT_DFNS |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | static struct old_serial_port old_serial_port[] = { | 105 | static const struct old_serial_port old_serial_port[] = { |
106 | SERIAL_PORT_DFNS /* defined in asm/serial.h */ | 106 | SERIAL_PORT_DFNS /* defined in asm/serial.h */ |
107 | }; | 107 | }; |
108 | 108 | ||
diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index 5c3c03932d6d..8d92adfbb8bd 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c | |||
@@ -468,7 +468,7 @@ static unsigned short timedia_eight_port[] = { | |||
468 | 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0 | 468 | 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0 |
469 | }; | 469 | }; |
470 | 470 | ||
471 | static struct timedia_struct { | 471 | static const struct timedia_struct { |
472 | int num; | 472 | int num; |
473 | unsigned short *ids; | 473 | unsigned short *ids; |
474 | } timedia_data[] = { | 474 | } timedia_data[] = { |
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 2331296e1e17..c17d680e3f04 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c | |||
@@ -1779,7 +1779,7 @@ struct baud_rates { | |||
1779 | unsigned int cflag; | 1779 | unsigned int cflag; |
1780 | }; | 1780 | }; |
1781 | 1781 | ||
1782 | static struct baud_rates baud_rates[] = { | 1782 | static const struct baud_rates baud_rates[] = { |
1783 | { 921600, B921600 }, | 1783 | { 921600, B921600 }, |
1784 | { 460800, B460800 }, | 1784 | { 460800, B460800 }, |
1785 | { 230400, B230400 }, | 1785 | { 230400, B230400 }, |
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c index 2c7d3ef76e8e..7ce0c7e66d37 100644 --- a/drivers/serial/serial_cs.c +++ b/drivers/serial/serial_cs.c | |||
@@ -85,7 +85,7 @@ struct multi_id { | |||
85 | int multi; /* 1 = multifunction, > 1 = # ports */ | 85 | int multi; /* 1 = multifunction, > 1 = # ports */ |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static struct multi_id multi_id[] = { | 88 | static const struct multi_id multi_id[] = { |
89 | { MANFID_OMEGA, PRODID_OMEGA_QSP_100, 4 }, | 89 | { MANFID_OMEGA, PRODID_OMEGA_QSP_100, 4 }, |
90 | { MANFID_QUATECH, PRODID_QUATECH_DUAL_RS232, 2 }, | 90 | { MANFID_QUATECH, PRODID_QUATECH_DUAL_RS232, 2 }, |
91 | { MANFID_QUATECH, PRODID_QUATECH_DUAL_RS232_D1, 2 }, | 91 | { MANFID_QUATECH, PRODID_QUATECH_DUAL_RS232_D1, 2 }, |
@@ -354,8 +354,8 @@ next_tuple(client_handle_t handle, tuple_t * tuple, cisparse_t * parse) | |||
354 | 354 | ||
355 | static int simple_config(dev_link_t *link) | 355 | static int simple_config(dev_link_t *link) |
356 | { | 356 | { |
357 | static kio_addr_t base[5] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x0 }; | 357 | static const kio_addr_t base[5] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x0 }; |
358 | static int size_table[2] = { 8, 16 }; | 358 | static const int size_table[2] = { 8, 16 }; |
359 | client_handle_t handle = link->handle; | 359 | client_handle_t handle = link->handle; |
360 | struct serial_info *info = link->priv; | 360 | struct serial_info *info = link->priv; |
361 | struct serial_cfg_mem *cfg_mem; | 361 | struct serial_cfg_mem *cfg_mem; |