Commit aa3188d0 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

TTY: 8250_pnp, constify tables

Make modem_names and base static const.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6f3689fb
...@@ -380,16 +380,16 @@ static const struct pnp_device_id pnp_dev_table[] = { ...@@ -380,16 +380,16 @@ static const struct pnp_device_id pnp_dev_table[] = {
MODULE_DEVICE_TABLE(pnp, pnp_dev_table); MODULE_DEVICE_TABLE(pnp, pnp_dev_table);
static char *modem_names[] = { static const char *modem_names[] = {
"MODEM", "Modem", "modem", "FAX", "Fax", "fax", "MODEM", "Modem", "modem", "FAX", "Fax", "fax",
"56K", "56k", "K56", "33.6", "28.8", "14.4", "56K", "56k", "K56", "33.6", "28.8", "14.4",
"33,600", "28,800", "14,400", "33.600", "28.800", "14.400", "33,600", "28,800", "14,400", "33.600", "28.800", "14.400",
"33600", "28800", "14400", "V.90", "V.34", "V.32", NULL "33600", "28800", "14400", "V.90", "V.34", "V.32", NULL
}; };
static int check_name(char *name) static int check_name(const char *name)
{ {
char **tmp; const char **tmp;
for (tmp = modem_names; *tmp; tmp++) for (tmp = modem_names; *tmp; tmp++)
if (strstr(name, *tmp)) if (strstr(name, *tmp))
...@@ -400,7 +400,7 @@ static int check_name(char *name) ...@@ -400,7 +400,7 @@ static int check_name(char *name)
static int check_resources(struct pnp_dev *dev) static int check_resources(struct pnp_dev *dev)
{ {
resource_size_t base[] = {0x2f8, 0x3f8, 0x2e8, 0x3e8}; static const resource_size_t base[] = {0x2f8, 0x3f8, 0x2e8, 0x3e8};
int i; int i;
for (i = 0; i < ARRAY_SIZE(base); i++) { for (i = 0; i < ARRAY_SIZE(base); i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment