From: Michal Simek <michal.simek@xilinx.com>
To: Fabian Frederick <fabf@skynet.be>, <linux-kernel@vger.kernel.org>
Cc: davem@davemloft.net, "Michal Simek" <michal.simek@xilinx.com>,
"Sören Brinkmann" <soren.brinkmann@xilinx.com>,
"Anirudha Sarangi" <anirudh@xilinx.com>,
"John Linn" <John.Linn@xilinx.com>,
netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 09/16 linux-next] net: xilinx: constify of_device_id array
Date: Wed, 18 Mar 2015 07:50:10 +0100 [thread overview]
Message-ID: <BY2FFO11FD004365A4A4A7796DC551DCFE2000@BY2FFO11FD004.protection.gbl> (raw)
In-Reply-To: <1426617469-781-10-git-send-email-fabf@skynet.be>
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
next prev parent reply other threads:[~2015-03-18 6:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-17 18:37 [PATCH 00/16 linux-next] drivers/net: " 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BY2FFO11FD004365A4A4A7796DC551DCFE2000@BY2FFO11FD004.protection.gbl \
--to=michal.simek@xilinx.com \
--cc=John.Linn@xilinx.com \
--cc=anirudh@xilinx.com \
--cc=davem@davemloft.net \
--cc=fabf@skynet.be \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=soren.brinkmann@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®