* [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 09/16 linux-next] net: xilinx: " Fabian Frederick ` (2 more replies) 0 siblings, 3 replies; 5+ messages in thread From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw) To: 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 ^ permalink raw reply [flat|nested] 5+ 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 @ 2015-03-17 18:37 ` Fabian Frederick 2015-03-18 6:50 ` Michal Simek [not found] ` <1426617628-937-1-git-send-email-fabf@skynet.be> 2015-03-17 19:00 ` [PATCH 00/16 linux-next] drivers/net: " David Miller 2 siblings, 1 reply; 5+ messages in thread From: Fabian Frederick @ 2015-03-17 18:37 UTC (permalink / raw) To: 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] 5+ messages in thread
* [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; 5+ messages in thread From: Michal Simek @ 2015-03-18 6:50 UTC (permalink / raw) To: 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] 5+ messages in thread
[parent not found: <1426617628-937-1-git-send-email-fabf@skynet.be>]
* [PATCH 12/16 linux-next] can: constify of_device_id array [not found] ` <1426617628-937-1-git-send-email-fabf@skynet.be> @ 2015-03-17 18:40 ` Fabian Frederick 0 siblings, 0 replies; 5+ messages in thread From: Fabian Frederick @ 2015-03-17 18:40 UTC (permalink / raw) To: 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] 5+ messages in thread
* [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 2015-03-17 18:37 ` [PATCH 09/16 linux-next] net: xilinx: " Fabian Frederick [not found] ` <1426617628-937-1-git-send-email-fabf@skynet.be> @ 2015-03-17 19:00 ` David Miller 2 siblings, 0 replies; 5+ messages in thread From: David Miller @ 2015-03-17 19:00 UTC (permalink / raw) To: linux-arm-kernel 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] 5+ messages in thread
end of thread, other threads:[~2015-03-18 6:50 UTC | newest] Thread overview: 5+ 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 09/16 linux-next] net: xilinx: " Fabian Frederick 2015-03-18 6:50 ` Michal Simek [not found] ` <1426617628-937-1-git-send-email-fabf@skynet.be> 2015-03-17 18:40 ` [PATCH 12/16 linux-next] can: " 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).