From: Andrew Lunn <andrew@lunn.ch>
To: Jingoo Han <jg1.han@samsung.com>
Cc: linux-mtd@lists.infradead.org,
'Brian Norris' <computersforpeace@gmail.com>,
'David Woodhouse' <dwmw2@infradead.org>,
'Andrew Lunn' <andrew@lunn.ch>
Subject: Re: [PATCH 3/3] mtd: orion_nand: Make of_device_id array const
Date: Wed, 7 May 2014 15:41:28 +0200 [thread overview]
Message-ID: <20140507134128.GA24565@lunn.ch> (raw)
In-Reply-To: <022001cf69d1$624bcd50$26e367f0$%han@samsung.com>
On Wed, May 07, 2014 at 05:50:23PM +0900, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/mtd/nand/orion_nand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
> index dd7fe81..471b4df 100644
> --- a/drivers/mtd/nand/orion_nand.c
> +++ b/drivers/mtd/nand/orion_nand.c
> @@ -214,7 +214,7 @@ static int orion_nand_remove(struct platform_device *pdev)
> }
>
> #ifdef CONFIG_OF
> -static struct of_device_id orion_nand_of_match_table[] = {
> +static const struct of_device_id orion_nand_of_match_table[] = {
> { .compatible = "marvell,orion-nand", },
> {},
> };
Acked-by: Andrew Lunn <andrew@lunn.ch>
Andrew
next prev parent reply other threads:[~2014-05-07 13:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 8:46 [PATCH 1/3] mtd: st_spi_fsm: Make of_device_id array const Jingoo Han
2014-05-07 8:49 ` [PATCH 2/3] mtd: nand: pxa3xx: " Jingoo Han
2014-05-07 12:49 ` Jason Cooper
2014-05-07 19:37 ` 'Ezequiel Garcia'
2014-05-07 8:50 ` [PATCH 3/3] mtd: orion_nand: " Jingoo Han
2014-05-07 13:41 ` Andrew Lunn [this message]
2014-05-12 23:21 ` [PATCH 1/3] mtd: st_spi_fsm: " Brian Norris
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=20140507134128.GA24565@lunn.ch \
--to=andrew@lunn.ch \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=jg1.han@samsung.com \
--cc=linux-mtd@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.