Skip to content

Commit 91558e7

Browse files
committed
Merge branch 'net-const-eisa_device_id'
Arvind Yadav says: ==================== constify net eisa_device_id eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by <linux/eisa.h> work with const eisa_device_id. So mark the non-const structs as const. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents e9638c5 + 46d9cea commit 91558e7

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

drivers/net/ethernet/3com/3c509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ static int pnp_registered;
474474
#endif /* CONFIG_PNP */
475475

476476
#ifdef CONFIG_EISA
477-
static struct eisa_device_id el3_eisa_ids[] = {
477+
static const struct eisa_device_id el3_eisa_ids[] = {
478478
{ "TCM5090" },
479479
{ "TCM5091" },
480480
{ "TCM5092" },

drivers/net/ethernet/3com/3c59x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static const struct dev_pm_ops vortex_pm_ops = {
900900
#endif /* !CONFIG_PM */
901901

902902
#ifdef CONFIG_EISA
903-
static struct eisa_device_id vortex_eisa_ids[] = {
903+
static const struct eisa_device_id vortex_eisa_ids[] = {
904904
{ "TCM5920", CH_3C592 },
905905
{ "TCM5970", CH_3C597 },
906906
{ "" }

drivers/net/ethernet/dec/tulip/de4x5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,7 @@ static int de4x5_eisa_remove(struct device *device)
20942094
return 0;
20952095
}
20962096

2097-
static struct eisa_device_id de4x5_eisa_ids[] = {
2097+
static const struct eisa_device_id de4x5_eisa_ids[] = {
20982098
{ "DEC4250", 0 }, /* 0 is the board name index... */
20992099
{ "" }
21002100
};

drivers/net/ethernet/hp/hp100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static const char *hp100_isa_tbl[] = {
194194
};
195195
#endif
196196

197-
static struct eisa_device_id hp100_eisa_tbl[] = {
197+
static const struct eisa_device_id hp100_eisa_tbl[] = {
198198
{ "HWPF180" }, /* HP J2577 rev A */
199199
{ "HWP1920" }, /* HP 27248B */
200200
{ "HWP1940" }, /* HP J2577 */

drivers/net/fddi/defxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3767,7 +3767,7 @@ static void dfx_pci_unregister(struct pci_dev *pdev)
37673767
#endif /* CONFIG_PCI */
37683768

37693769
#ifdef CONFIG_EISA
3770-
static struct eisa_device_id dfx_eisa_table[] = {
3770+
static const struct eisa_device_id dfx_eisa_table[] = {
37713771
{ "DEC3001", DEFEA_PROD_ID_1 },
37723772
{ "DEC3002", DEFEA_PROD_ID_2 },
37733773
{ "DEC3003", DEFEA_PROD_ID_3 },

0 commit comments

Comments
 (0)