* [PATCH 00/16 linux-next] drivers/net: constify of_device_id array
@ 2015-03-17 18:37 Fabian Frederick
2015-03-17 18:37 ` [PATCH 01/16 linux-next] net: netcp: " Fabian Frederick
` (10 more replies)
0 siblings, 11 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel
Cc: netdev, linux-wireless, linux-can, Fabian Frederick,
Sören Brinkmann, nios2-dev, linuxppc-dev, davem,
linux-arm-kernel
This small patchset adds const to of_device_id arrays in
drivers/net branch.
Fabian Frederick (16):
net: netcp: constify of_device_id array
Altera TSE: constify of_device_id array
net/fsl: constify of_device_id array
net: ethoc: constify of_device_id array
drivers: net: xgene: constify of_device_id array
net: ethernet: apple: constify of_device_id array
netdev: octeon_mgmt: constify of_device_id array
net: greth: constify of_device_id array
net: xilinx: constify of_device_id array
orinoco: constify of_device_id array
net: phy: constify of_device_id array
can: constify of_device_id array
IBM-EMAC: constify of_device_id array
ehea: constify of_device_id array
net: via-rhine: constify of_device_id array
via-velocity: constify of_device_id array
drivers/net/can/cc770/cc770_platform.c | 2 +-
drivers/net/can/grcan.c | 2 +-
drivers/net/can/mscan/mpc5xxx_can.c | 2 +-
drivers/net/can/sja1000/sja1000_platform.c | 2 +-
drivers/net/can/xilinx_can.c | 2 +-
drivers/net/ethernet/aeroflex/greth.c | 2 +-
drivers/net/ethernet/altera/altera_tse_main.c | 4 ++--
drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 +-
drivers/net/ethernet/apple/bmac.c | 2 +-
drivers/net/ethernet/apple/mace.c | 2 +-
drivers/net/ethernet/ethoc.c | 2 +-
drivers/net/ethernet/freescale/fec_mpc52xx.c | 2 +-
drivers/net/ethernet/freescale/fec_mpc52xx_phy.c | 2 +-
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 4 ++--
drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c | 2 +-
drivers/net/ethernet/freescale/fs_enet/mii-fec.c | 4 ++--
drivers/net/ethernet/freescale/fsl_pq_mdio.c | 2 +-
drivers/net/ethernet/freescale/gianfar.c | 2 +-
drivers/net/ethernet/freescale/gianfar_ptp.c | 2 +-
drivers/net/ethernet/freescale/ucc_geth.c | 2 +-
drivers/net/ethernet/freescale/xgmac_mdio.c | 2 +-
drivers/net/ethernet/ibm/ehea/ehea_main.c | 4 ++--
drivers/net/ethernet/ibm/emac/core.c | 2 +-
drivers/net/ethernet/ibm/emac/mal.c | 2 +-
drivers/net/ethernet/ibm/emac/rgmii.c | 2 +-
drivers/net/ethernet/ibm/emac/tah.c | 2 +-
drivers/net/ethernet/ibm/emac/zmii.c | 2 +-
drivers/net/ethernet/octeon/octeon_mgmt.c | 2 +-
drivers/net/ethernet/ti/netcp_core.c | 2 +-
drivers/net/ethernet/via/via-rhine.c | 2 +-
drivers/net/ethernet/via/via-velocity.c | 2 +-
drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +-
drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 +-
drivers/net/phy/mdio-bcm-unimac.c | 2 +-
drivers/net/phy/mdio-gpio.c | 2 +-
drivers/net/phy/mdio-mux-gpio.c | 2 +-
drivers/net/phy/mdio-mux-mmioreg.c | 2 +-
drivers/net/phy/mdio-octeon.c | 2 +-
drivers/net/wireless/orinoco/airport.c | 2 +-
40 files changed, 44 insertions(+), 44 deletions(-)
--
2.1.0
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 01/16 linux-next] net: netcp: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 02/16 linux-next] Altera TSE: " Fabian Frederick
` (9 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel
Cc: davem, Fabian Frederick, Wingman Kwok, Murali Karicheri, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/ti/netcp_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c
index 9f14d8b..1c4dd80 100644
--- a/drivers/net/ethernet/ti/netcp_core.c
+++ b/drivers/net/ethernet/ti/netcp_core.c
@@ -2127,7 +2127,7 @@ static int netcp_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id of_match[] = {
+static const struct of_device_id of_match[] = {
{ .compatible = "ti,netcp-1.0", },
{},
};
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 02/16 linux-next] Altera TSE: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
2015-03-17 18:37 ` [PATCH 01/16 linux-next] net: netcp: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 03/16 linux-next] net/fsl: " Fabian Frederick
` (8 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, Vince Bridgers, netdev, nios2-dev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/altera/altera_tse_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
index fd9296a..79ea358 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -89,7 +89,7 @@ MODULE_PARM_DESC(dma_tx_num, "Number of descriptors in the TX list");
#define TXQUEUESTOP_THRESHHOLD 2
-static struct of_device_id altera_tse_ids[];
+static const struct of_device_id altera_tse_ids[];
static inline u32 tse_tx_avail(struct altera_tse_private *priv)
{
@@ -1576,7 +1576,7 @@ static const struct altera_dmaops altera_dtype_msgdma = {
.start_rxdma = msgdma_start_rxdma,
};
-static struct of_device_id altera_tse_ids[] = {
+static const struct of_device_id altera_tse_ids[] = {
{ .compatible = "altr,tse-msgdma-1.0", .data = &altera_dtype_msgdma, },
{ .compatible = "altr,tse-1.0", .data = &altera_dtype_sgdma, },
{ .compatible = "ALTR,tse-1.0", .data = &altera_dtype_sgdma, },
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 03/16 linux-next] net/fsl: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
2015-03-17 18:37 ` [PATCH 01/16 linux-next] net: netcp: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 02/16 linux-next] Altera TSE: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 04/16 linux-next] net: ethoc: " Fabian Frederick
` (7 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel
Cc: davem, Fabian Frederick, Pantelis Antoniou, Vitaly Bordug,
Richard Cochran, Li Yang, netdev, linuxppc-dev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/freescale/fec_mpc52xx.c | 2 +-
drivers/net/ethernet/freescale/fec_mpc52xx_phy.c | 2 +-
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 4 ++--
drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c | 2 +-
drivers/net/ethernet/freescale/fs_enet/mii-fec.c | 4 ++--
drivers/net/ethernet/freescale/fsl_pq_mdio.c | 2 +-
drivers/net/ethernet/freescale/gianfar.c | 2 +-
drivers/net/ethernet/freescale/gianfar_ptp.c | 2 +-
drivers/net/ethernet/freescale/ucc_geth.c | 2 +-
drivers/net/ethernet/freescale/xgmac_mdio.c | 2 +-
10 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx.c b/drivers/net/ethernet/freescale/fec_mpc52xx.c
index f495796..afe7f39 100644
--- a/drivers/net/ethernet/freescale/fec_mpc52xx.c
+++ b/drivers/net/ethernet/freescale/fec_mpc52xx.c
@@ -1057,7 +1057,7 @@ static int mpc52xx_fec_of_resume(struct platform_device *op)
}
#endif
-static struct of_device_id mpc52xx_fec_match[] = {
+static const struct of_device_id mpc52xx_fec_match[] = {
{ .compatible = "fsl,mpc5200b-fec", },
{ .compatible = "fsl,mpc5200-fec", },
{ .compatible = "mpc5200-fec", },
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c b/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
index e052890..1e647be 100644
--- a/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
+++ b/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
@@ -134,7 +134,7 @@ static int mpc52xx_fec_mdio_remove(struct platform_device *of)
return 0;
}
-static struct of_device_id mpc52xx_fec_mdio_match[] = {
+static const struct of_device_id mpc52xx_fec_mdio_match[] = {
{ .compatible = "fsl,mpc5200b-mdio", },
{ .compatible = "fsl,mpc5200-mdio", },
{ .compatible = "mpc5200b-fec-phy", },
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
index a176287..9b3639e 100644
--- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
+++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
@@ -916,7 +916,7 @@ static const struct net_device_ops fs_enet_netdev_ops = {
#endif
};
-static struct of_device_id fs_enet_match[];
+static const struct of_device_id fs_enet_match[];
static int fs_enet_probe(struct platform_device *ofdev)
{
const struct of_device_id *match;
@@ -1082,7 +1082,7 @@ static int fs_enet_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id fs_enet_match[] = {
+static const struct of_device_id fs_enet_match[] = {
#ifdef CONFIG_FS_ENET_HAS_SCC
{
.compatible = "fsl,cpm1-scc-enet",
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c b/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
index 1d5617d..68a428d 100644
--- a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
+++ b/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c
@@ -213,7 +213,7 @@ static int fs_enet_mdio_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id fs_enet_mdio_bb_match[] = {
+static const struct of_device_id fs_enet_mdio_bb_match[] = {
{
.compatible = "fsl,cpm2-mdio-bitbang",
},
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
index 1648e35..2be383e 100644
--- a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
+++ b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c
@@ -95,7 +95,7 @@ static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location,
}
-static struct of_device_id fs_enet_mdio_fec_match[];
+static const struct of_device_id fs_enet_mdio_fec_match[];
static int fs_enet_mdio_probe(struct platform_device *ofdev)
{
const struct of_device_id *match;
@@ -208,7 +208,7 @@ static int fs_enet_mdio_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id fs_enet_mdio_fec_match[] = {
+static const struct of_device_id fs_enet_mdio_fec_match[] = {
{
.compatible = "fsl,pq1-fec-mdio",
},
diff --git a/drivers/net/ethernet/freescale/fsl_pq_mdio.c b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
index d1a91e3..3c40f6b 100644
--- a/drivers/net/ethernet/freescale/fsl_pq_mdio.c
+++ b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
@@ -294,7 +294,7 @@ static void ucc_configure(phys_addr_t start, phys_addr_t end)
#endif
-static struct of_device_id fsl_pq_mdio_match[] = {
+static const struct of_device_id fsl_pq_mdio_match[] = {
#if defined(CONFIG_GIANFAR) || defined(CONFIG_GIANFAR_MODULE)
{
.compatible = "fsl,gianfar-tbi",
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c
index 70fa688..4ee080d 100644
--- a/drivers/net/ethernet/freescale/gianfar.c
+++ b/drivers/net/ethernet/freescale/gianfar.c
@@ -3594,7 +3594,7 @@ static noinline void gfar_update_link_state(struct gfar_private *priv)
phy_print_status(phydev);
}
-static struct of_device_id gfar_match[] =
+static const struct of_device_id gfar_match[] =
{
{
.type = "network",
diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c
index 1682634..77353366 100644
--- a/drivers/net/ethernet/freescale/gianfar_ptp.c
+++ b/drivers/net/ethernet/freescale/gianfar_ptp.c
@@ -554,7 +554,7 @@ static int gianfar_ptp_remove(struct platform_device *dev)
return 0;
}
-static struct of_device_id match_table[] = {
+static const struct of_device_id match_table[] = {
{ .compatible = "fsl,etsec-ptp" },
{},
};
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
index 357e8b57..bfdccbd 100644
--- a/drivers/net/ethernet/freescale/ucc_geth.c
+++ b/drivers/net/ethernet/freescale/ucc_geth.c
@@ -3930,7 +3930,7 @@ static int ucc_geth_remove(struct platform_device* ofdev)
return 0;
}
-static struct of_device_id ucc_geth_match[] = {
+static const struct of_device_id ucc_geth_match[] = {
{
.type = "network",
.compatible = "ucc_geth",
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index cd40b68..7b8fe86 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -307,7 +307,7 @@ static int xgmac_mdio_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id xgmac_mdio_match[] = {
+static const struct of_device_id xgmac_mdio_match[] = {
{
.compatible = "fsl,fman-xmdio",
},
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 04/16 linux-next] net: ethoc: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (2 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 03/16 linux-next] net/fsl: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 05/16 linux-next] drivers: net: xgene: " Fabian Frederick
` (6 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/ethoc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index f88cfaa..442410c 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -1299,7 +1299,7 @@ static int ethoc_resume(struct platform_device *pdev)
# define ethoc_resume NULL
#endif
-static struct of_device_id ethoc_match[] = {
+static const struct of_device_id ethoc_match[] = {
{ .compatible = "opencores,ethoc", },
{},
};
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 05/16 linux-next] drivers: net: xgene: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (3 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 04/16 linux-next] net: ethoc: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 06/16 linux-next] net: ethernet: apple: " Fabian Frederick
` (5 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel
Cc: davem, Fabian Frederick, Iyappan Subramanian, Keyur Chudgar,
netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
index 635a83b..edb8436 100644
--- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
+++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
@@ -1033,7 +1033,7 @@ MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match);
#endif
#ifdef CONFIG_OF
-static struct of_device_id xgene_enet_of_match[] = {
+static const struct of_device_id xgene_enet_of_match[] = {
{.compatible = "apm,xgene-enet",},
{.compatible = "apm,xgene1-sgenet",},
{.compatible = "apm,xgene1-xgenet",},
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 06/16 linux-next] net: ethernet: apple: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (4 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 05/16 linux-next] drivers: net: xgene: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 07/16 linux-next] netdev: octeon_mgmt: " Fabian Frederick
` (4 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/apple/bmac.c | 2 +-
drivers/net/ethernet/apple/mace.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/apple/bmac.c b/drivers/net/ethernet/apple/bmac.c
index daae0e0..2f98846 100644
--- a/drivers/net/ethernet/apple/bmac.c
+++ b/drivers/net/ethernet/apple/bmac.c
@@ -1621,7 +1621,7 @@ static int bmac_remove(struct macio_dev *mdev)
return 0;
}
-static struct of_device_id bmac_match[] =
+static const struct of_device_id bmac_match[] =
{
{
.name = "bmac",
diff --git a/drivers/net/ethernet/apple/mace.c b/drivers/net/ethernet/apple/mace.c
index 7fcaf0d..a1894828 100644
--- a/drivers/net/ethernet/apple/mace.c
+++ b/drivers/net/ethernet/apple/mace.c
@@ -984,7 +984,7 @@ static irqreturn_t mace_rxdma_intr(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static struct of_device_id mace_match[] =
+static const struct of_device_id mace_match[] =
{
{
.name = "mace",
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 07/16 linux-next] netdev: octeon_mgmt: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (5 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 06/16 linux-next] net: ethernet: apple: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 08/16 linux-next] net: greth: " Fabian Frederick
` (3 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/octeon/octeon_mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c
index d36599f..7bf9c02 100644
--- a/drivers/net/ethernet/octeon/octeon_mgmt.c
+++ b/drivers/net/ethernet/octeon/octeon_mgmt.c
@@ -1557,7 +1557,7 @@ static int octeon_mgmt_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id octeon_mgmt_match[] = {
+static const struct of_device_id octeon_mgmt_match[] = {
{
.compatible = "cavium,octeon-5750-mix",
},
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 08/16 linux-next] net: greth: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (6 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 07/16 linux-next] netdev: octeon_mgmt: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-17 18:37 ` [PATCH 09/16 linux-next] net: xilinx: " Fabian Frederick
` (2 subsequent siblings)
10 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, Kristoffer Glembo, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/aeroflex/greth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c
index 2b8bfee..ae89de7 100644
--- a/drivers/net/ethernet/aeroflex/greth.c
+++ b/drivers/net/ethernet/aeroflex/greth.c
@@ -1588,7 +1588,7 @@ static int greth_of_remove(struct platform_device *of_dev)
return 0;
}
-static struct of_device_id greth_of_match[] = {
+static const struct of_device_id greth_of_match[] = {
{
.name = "GAISLER_ETHMAC",
},
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 09/16 linux-next] net: xilinx: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (7 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 08/16 linux-next] net: greth: " Fabian Frederick
@ 2015-03-17 18:37 ` Fabian Frederick
2015-03-18 6:50 ` Michal Simek
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
2015-03-17 19:00 ` [PATCH 00/16 linux-next] drivers/net: " David Miller
10 siblings, 1 reply; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw)
To: linux-kernel
Cc: davem, Fabian Frederick, Michal Simek, Sören Brinkmann,
Anirudha Sarangi, John Linn, netdev, linux-arm-kernel
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +-
drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index dbcbf0c..690a4c3 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -1157,7 +1157,7 @@ static int temac_of_remove(struct platform_device *op)
return 0;
}
-static struct of_device_id temac_of_match[] = {
+static const struct of_device_id temac_of_match[] = {
{ .compatible = "xlnx,xps-ll-temac-1.01.b", },
{ .compatible = "xlnx,xps-ll-temac-2.00.a", },
{ .compatible = "xlnx,xps-ll-temac-2.02.a", },
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index a6d2860..28b7e7d 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -48,7 +48,7 @@
#define AXIENET_REGS_N 32
/* Match table for of_platform binding */
-static struct of_device_id axienet_of_match[] = {
+static const struct of_device_id axienet_of_match[] = {
{ .compatible = "xlnx,axi-ethernet-1.00.a", },
{ .compatible = "xlnx,axi-ethernet-1.01.a", },
{ .compatible = "xlnx,axi-ethernet-2.01.a", },
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 9d4ce38..2111b91 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -1231,7 +1231,7 @@ static struct net_device_ops xemaclite_netdev_ops = {
};
/* Match table for OF platform binding */
-static struct of_device_id xemaclite_of_match[] = {
+static const struct of_device_id xemaclite_of_match[] = {
{ .compatible = "xlnx,opb-ethernetlite-1.01.a", },
{ .compatible = "xlnx,opb-ethernetlite-1.01.b", },
{ .compatible = "xlnx,xps-ethernetlite-1.00.a", },
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 10/16 linux-next] orinoco: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (8 preceding siblings ...)
2015-03-17 18:37 ` [PATCH 09/16 linux-next] net: xilinx: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
2015-03-17 18:40 ` [PATCH 11/16 linux-next] net: phy: " Fabian Frederick
` (5 more replies)
2015-03-17 19:00 ` [PATCH 00/16 linux-next] drivers/net: " David Miller
10 siblings, 6 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, Kalle Valo, linux-wireless, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/wireless/orinoco/airport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/orinoco/airport.c b/drivers/net/wireless/orinoco/airport.c
index 0ca8b14..77e6c53 100644
--- a/drivers/net/wireless/orinoco/airport.c
+++ b/drivers/net/wireless/orinoco/airport.c
@@ -228,7 +228,7 @@ MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");
MODULE_DESCRIPTION("Driver for the Apple Airport wireless card.");
MODULE_LICENSE("Dual MPL/GPL");
-static struct of_device_id airport_match[] = {
+static const struct of_device_id airport_match[] = {
{
.name = "radio",
},
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 11/16 linux-next] net: phy: constify of_device_id array
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
2015-03-17 18:40 ` [PATCH 12/16 linux-next] can: " Fabian Frederick
` (4 subsequent siblings)
5 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, Florian Fainelli, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/phy/mdio-bcm-unimac.c | 2 +-
drivers/net/phy/mdio-gpio.c | 2 +-
drivers/net/phy/mdio-mux-gpio.c | 2 +-
drivers/net/phy/mdio-mux-mmioreg.c | 2 +-
drivers/net/phy/mdio-octeon.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/phy/mdio-bcm-unimac.c b/drivers/net/phy/mdio-bcm-unimac.c
index 6deac6d..414fdf1 100644
--- a/drivers/net/phy/mdio-bcm-unimac.c
+++ b/drivers/net/phy/mdio-bcm-unimac.c
@@ -187,7 +187,7 @@ static int unimac_mdio_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id unimac_mdio_ids[] = {
+static const struct of_device_id unimac_mdio_ids[] = {
{ .compatible = "brcm,genet-mdio-v4", },
{ .compatible = "brcm,genet-mdio-v3", },
{ .compatible = "brcm,genet-mdio-v2", },
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 0a0578a..49ce7ec 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -249,7 +249,7 @@ static int mdio_gpio_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id mdio_gpio_of_match[] = {
+static const struct of_device_id mdio_gpio_of_match[] = {
{ .compatible = "virtual,mdio-gpio", },
{ /* sentinel */ }
};
diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c
index 320eb15..1a87a58 100644
--- a/drivers/net/phy/mdio-mux-gpio.c
+++ b/drivers/net/phy/mdio-mux-gpio.c
@@ -99,7 +99,7 @@ static int mdio_mux_gpio_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id mdio_mux_gpio_match[] = {
+static const struct of_device_id mdio_mux_gpio_match[] = {
{
.compatible = "mdio-mux-gpio",
},
diff --git a/drivers/net/phy/mdio-mux-mmioreg.c b/drivers/net/phy/mdio-mux-mmioreg.c
index 0aa985c..2377c13 100644
--- a/drivers/net/phy/mdio-mux-mmioreg.c
+++ b/drivers/net/phy/mdio-mux-mmioreg.c
@@ -145,7 +145,7 @@ static int mdio_mux_mmioreg_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id mdio_mux_mmioreg_match[] = {
+static const struct of_device_id mdio_mux_mmioreg_match[] = {
{
.compatible = "mdio-mux-mmioreg",
},
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c
index c810524..c838ad6 100644
--- a/drivers/net/phy/mdio-octeon.c
+++ b/drivers/net/phy/mdio-octeon.c
@@ -252,7 +252,7 @@ static int octeon_mdiobus_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id octeon_mdiobus_match[] = {
+static const struct of_device_id octeon_mdiobus_match[] = {
{
.compatible = "cavium,octeon-3860-mdio",
},
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 12/16 linux-next] can: constify of_device_id array
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 11/16 linux-next] net: phy: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
2015-03-17 18:40 ` [PATCH 13/16 linux-next] IBM-EMAC: " Fabian Frederick
` (3 subsequent siblings)
5 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel
Cc: davem, Fabian Frederick, Wolfgang Grandegger, Marc Kleine-Budde,
Michal Simek, Sören Brinkmann, linux-can, netdev,
linux-arm-kernel
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/can/cc770/cc770_platform.c | 2 +-
drivers/net/can/grcan.c | 2 +-
drivers/net/can/mscan/mpc5xxx_can.c | 2 +-
drivers/net/can/sja1000/sja1000_platform.c | 2 +-
drivers/net/can/xilinx_can.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/can/cc770/cc770_platform.c b/drivers/net/can/cc770/cc770_platform.c
index b1e8851..866e5e1 100644
--- a/drivers/net/can/cc770/cc770_platform.c
+++ b/drivers/net/can/cc770/cc770_platform.c
@@ -254,7 +254,7 @@ static int cc770_platform_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id cc770_platform_table[] = {
+static const struct of_device_id cc770_platform_table[] = {
{.compatible = "bosch,cc770"}, /* CC770 from Bosch */
{.compatible = "intc,82527"}, /* AN82527 from Intel CP */
{},
diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c
index fed1bbd..e3d7e22 100644
--- a/drivers/net/can/grcan.c
+++ b/drivers/net/can/grcan.c
@@ -1725,7 +1725,7 @@ static int grcan_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id grcan_match[] = {
+static const struct of_device_id grcan_match[] = {
{.name = "GAISLER_GRCAN"},
{.name = "01_03d"},
{.name = "GAISLER_GRHCAN"},
diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c
index ad024e6..c7427bd 100644
--- a/drivers/net/can/mscan/mpc5xxx_can.c
+++ b/drivers/net/can/mscan/mpc5xxx_can.c
@@ -43,7 +43,7 @@ struct mpc5xxx_can_data {
};
#ifdef CONFIG_PPC_MPC52xx
-static struct of_device_id mpc52xx_cdm_ids[] = {
+static const struct of_device_id mpc52xx_cdm_ids[] = {
{ .compatible = "fsl,mpc5200-cdm", },
{}
};
diff --git a/drivers/net/can/sja1000/sja1000_platform.c b/drivers/net/can/sja1000/sja1000_platform.c
index 9311525..0552ed4 100644
--- a/drivers/net/can/sja1000/sja1000_platform.c
+++ b/drivers/net/can/sja1000/sja1000_platform.c
@@ -242,7 +242,7 @@ static int sp_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id sp_of_table[] = {
+static const struct of_device_id sp_of_table[] = {
{.compatible = "nxp,sja1000"},
{},
};
diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c
index 6c67643..6bddfe0 100644
--- a/drivers/net/can/xilinx_can.c
+++ b/drivers/net/can/xilinx_can.c
@@ -1185,7 +1185,7 @@ static int xcan_remove(struct platform_device *pdev)
}
/* Match table for OF platform binding */
-static struct of_device_id xcan_of_match[] = {
+static const struct of_device_id xcan_of_match[] = {
{ .compatible = "xlnx,zynq-can-1.0", },
{ .compatible = "xlnx,axi-can-1.00.a", },
{ /* end of list */ },
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 13/16 linux-next] IBM-EMAC: constify of_device_id array
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 11/16 linux-next] net: phy: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 12/16 linux-next] can: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
2015-03-17 18:40 ` [PATCH 14/16 linux-next] ehea: " Fabian Frederick
` (2 subsequent siblings)
5 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/ibm/emac/core.c | 2 +-
drivers/net/ethernet/ibm/emac/mal.c | 2 +-
drivers/net/ethernet/ibm/emac/rgmii.c | 2 +-
drivers/net/ethernet/ibm/emac/tah.c | 2 +-
drivers/net/ethernet/ibm/emac/zmii.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c
index 162762d..8a17b97 100644
--- a/drivers/net/ethernet/ibm/emac/core.c
+++ b/drivers/net/ethernet/ibm/emac/core.c
@@ -2981,7 +2981,7 @@ static int emac_remove(struct platform_device *ofdev)
}
/* XXX Features in here should be replaced by properties... */
-static struct of_device_id emac_match[] =
+static const struct of_device_id emac_match[] =
{
{
.type = "network",
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c
index dddaab1..fdb5cdb 100644
--- a/drivers/net/ethernet/ibm/emac/mal.c
+++ b/drivers/net/ethernet/ibm/emac/mal.c
@@ -753,7 +753,7 @@ static int mal_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id mal_platform_match[] =
+static const struct of_device_id mal_platform_match[] =
{
{
.compatible = "ibm,mcmal",
diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c
index 457088f..206ccbb 100644
--- a/drivers/net/ethernet/ibm/emac/rgmii.c
+++ b/drivers/net/ethernet/ibm/emac/rgmii.c
@@ -305,7 +305,7 @@ static int rgmii_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id rgmii_match[] =
+static const struct of_device_id rgmii_match[] =
{
{
.compatible = "ibm,rgmii",
diff --git a/drivers/net/ethernet/ibm/emac/tah.c b/drivers/net/ethernet/ibm/emac/tah.c
index cb18e7f..32cb6c9 100644
--- a/drivers/net/ethernet/ibm/emac/tah.c
+++ b/drivers/net/ethernet/ibm/emac/tah.c
@@ -148,7 +148,7 @@ static int tah_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id tah_match[] =
+static const struct of_device_id tah_match[] =
{
{
.compatible = "ibm,tah",
diff --git a/drivers/net/ethernet/ibm/emac/zmii.c b/drivers/net/ethernet/ibm/emac/zmii.c
index 36409cc..8727b86 100644
--- a/drivers/net/ethernet/ibm/emac/zmii.c
+++ b/drivers/net/ethernet/ibm/emac/zmii.c
@@ -295,7 +295,7 @@ static int zmii_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id zmii_match[] =
+static const struct of_device_id zmii_match[] =
{
{
.compatible = "ibm,zmii",
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 14/16 linux-next] ehea: constify of_device_id array
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
` (2 preceding siblings ...)
2015-03-17 18:40 ` [PATCH 13/16 linux-next] IBM-EMAC: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
2015-03-17 18:40 ` [PATCH 15/16 linux-next] net: via-rhine: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 16/16 linux-next] via-velocity: " Fabian Frederick
5 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel
Cc: davem, Fabian Frederick, Thadeu Lima de Souza Cascardo, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/ibm/ehea/ehea_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c
index c05e507..291c870 100644
--- a/drivers/net/ethernet/ibm/ehea/ehea_main.c
+++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c
@@ -103,7 +103,7 @@ static int ehea_probe_adapter(struct platform_device *dev);
static int ehea_remove(struct platform_device *dev);
-static struct of_device_id ehea_module_device_table[] = {
+static const struct of_device_id ehea_module_device_table[] = {
{
.name = "lhea",
.compatible = "IBM,lhea",
@@ -116,7 +116,7 @@ static struct of_device_id ehea_module_device_table[] = {
};
MODULE_DEVICE_TABLE(of, ehea_module_device_table);
-static struct of_device_id ehea_device_table[] = {
+static const struct of_device_id ehea_device_table[] = {
{
.name = "lhea",
.compatible = "IBM,lhea",
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 15/16 linux-next] net: via-rhine: constify of_device_id array
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
` (3 preceding siblings ...)
2015-03-17 18:40 ` [PATCH 14/16 linux-next] ehea: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
2015-03-17 18:40 ` [PATCH 16/16 linux-next] via-velocity: " Fabian Frederick
5 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, Roger Luethi, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/via/via-rhine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c
index 8fb807e..de28504 100644
--- a/drivers/net/ethernet/via/via-rhine.c
+++ b/drivers/net/ethernet/via/via-rhine.c
@@ -288,7 +288,7 @@ MODULE_DEVICE_TABLE(pci, rhine_pci_tbl);
* The .data field is currently only used to store quirks
*/
static u32 vt8500_quirks = rqWOL | rqForceReset | rq6patterns;
-static struct of_device_id rhine_of_tbl[] = {
+static const struct of_device_id rhine_of_tbl[] = {
{ .compatible = "via,vt8500-rhine", .data = &vt8500_quirks },
{ } /* terminate list */
};
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 16/16 linux-next] via-velocity: constify of_device_id array
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
` (4 preceding siblings ...)
2015-03-17 18:40 ` [PATCH 15/16 linux-next] net: via-rhine: " Fabian Frederick
@ 2015-03-17 18:40 ` Fabian Frederick
5 siblings, 0 replies; 19+ messages in thread
From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw)
To: linux-kernel; +Cc: davem, Fabian Frederick, Francois Romieu, netdev
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/net/ethernet/via/via-velocity.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index c20206f..ae68afd 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -392,7 +392,7 @@ MODULE_DEVICE_TABLE(pci, velocity_pci_id_table);
* Describe the OF device identifiers that we support in this
* device driver. Used for devicetree nodes.
*/
-static struct of_device_id velocity_of_ids[] = {
+static const struct of_device_id velocity_of_ids[] = {
{ .compatible = "via,velocity-vt6110", .data = &chip_info_table[0] },
{ /* Sentinel */ },
};
--
2.1.0
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH 00/16 linux-next] drivers/net: constify of_device_id array
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
` (9 preceding siblings ...)
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
@ 2015-03-17 19:00 ` David Miller
10 siblings, 0 replies; 19+ messages in thread
From: David Miller @ 2015-03-17 19:00 UTC (permalink / raw)
To: fabf
Cc: linux-kernel, soren.brinkmann, linux-can, netdev,
linux-arm-kernel, nios2-dev, linuxppc-dev, linux-wireless
From: Fabian Frederick <fabf@skynet.be>
Date: Tue, 17 Mar 2015 19:37:31 +0100
> This small patchset adds const to of_device_id arrays in
> drivers/net branch.
Series applied, thanks.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 09/16 linux-next] net: xilinx: constify of_device_id array
2015-03-17 18:37 ` [PATCH 09/16 linux-next] net: xilinx: " Fabian Frederick
@ 2015-03-18 6:50 ` Michal Simek
0 siblings, 0 replies; 19+ messages in thread
From: Michal Simek @ 2015-03-18 6:50 UTC (permalink / raw)
To: Fabian Frederick, linux-kernel
Cc: davem, Michal Simek, Sören Brinkmann, Anirudha Sarangi,
John Linn, netdev, linux-arm-kernel
On 03/17/2015 07:37 PM, Fabian Frederick wrote:
> of_device_id is always used as const.
> (See driver.of_match_table and open firmware functions)
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
> drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +-
> drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
> drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
> index dbcbf0c..690a4c3 100644
> --- a/drivers/net/ethernet/xilinx/ll_temac_main.c
> +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
> @@ -1157,7 +1157,7 @@ static int temac_of_remove(struct platform_device *op)
> return 0;
> }
>
> -static struct of_device_id temac_of_match[] = {
> +static const struct of_device_id temac_of_match[] = {
> { .compatible = "xlnx,xps-ll-temac-1.01.b", },
> { .compatible = "xlnx,xps-ll-temac-2.00.a", },
> { .compatible = "xlnx,xps-ll-temac-2.02.a", },
> diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> index a6d2860..28b7e7d 100644
> --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> @@ -48,7 +48,7 @@
> #define AXIENET_REGS_N 32
>
> /* Match table for of_platform binding */
> -static struct of_device_id axienet_of_match[] = {
> +static const struct of_device_id axienet_of_match[] = {
> { .compatible = "xlnx,axi-ethernet-1.00.a", },
> { .compatible = "xlnx,axi-ethernet-1.01.a", },
> { .compatible = "xlnx,axi-ethernet-2.01.a", },
> diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> index 9d4ce38..2111b91 100644
> --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> @@ -1231,7 +1231,7 @@ static struct net_device_ops xemaclite_netdev_ops = {
> };
>
> /* Match table for OF platform binding */
> -static struct of_device_id xemaclite_of_match[] = {
> +static const struct of_device_id xemaclite_of_match[] = {
> { .compatible = "xlnx,opb-ethernetlite-1.01.a", },
> { .compatible = "xlnx,opb-ethernetlite-1.01.b", },
> { .compatible = "xlnx,xps-ethernetlite-1.00.a", },
>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Thanks,
Michal
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2015-03-18 6:50 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: constify of_device_id array Fabian Frederick
2015-03-17 18:37 ` [PATCH 01/16 linux-next] net: netcp: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 02/16 linux-next] Altera TSE: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 03/16 linux-next] net/fsl: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 04/16 linux-next] net: ethoc: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 05/16 linux-next] drivers: net: xgene: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 06/16 linux-next] net: ethernet: apple: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 07/16 linux-next] netdev: octeon_mgmt: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 08/16 linux-next] net: greth: " Fabian Frederick
2015-03-17 18:37 ` [PATCH 09/16 linux-next] net: xilinx: " Fabian Frederick
2015-03-18 6:50 ` Michal Simek
2015-03-17 18:40 ` [PATCH 10/16 linux-next] orinoco: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 11/16 linux-next] net: phy: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 12/16 linux-next] can: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 13/16 linux-next] IBM-EMAC: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 14/16 linux-next] ehea: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 15/16 linux-next] net: via-rhine: " Fabian Frederick
2015-03-17 18:40 ` [PATCH 16/16 linux-next] via-velocity: " Fabian Frederick
2015-03-17 19:00 ` [PATCH 00/16 linux-next] drivers/net: " David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).