From: Roland Stigge <stigge@antcom.de>
To: Jingoo Han <jg1.han@samsung.com>,
'Linus Walleij' <linus.walleij@linaro.org>
Cc: 'Alexandre Courbot' <gnurou@gmail.com>, linux-gpio@vger.kernel.org
Subject: Re: [PATCH 1/2] gpio: lpc32xx: Make of_device_id array const
Date: Tue, 03 Jun 2014 14:11:49 +0200 [thread overview]
Message-ID: <538DBB85.4030201@antcom.de> (raw)
In-Reply-To: <002301cf7f24$9beec360$d3cc4a20$%han@samsung.com>
On 06/03/2014 02:09 PM, 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/gpio/gpio-lpc32xx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c
> index 225344d..b9b9799 100644
> --- a/drivers/gpio/gpio-lpc32xx.c
> +++ b/drivers/gpio/gpio-lpc32xx.c
> @@ -560,7 +560,7 @@ static int lpc32xx_gpio_probe(struct platform_device *pdev)
> }
>
> #ifdef CONFIG_OF
> -static struct of_device_id lpc32xx_gpio_of_match[] = {
> +static const struct of_device_id lpc32xx_gpio_of_match[] = {
> { .compatible = "nxp,lpc3220-gpio", },
> { },
> };
>
Acked-By: Roland Stigge <stigge@antcom.de>
next prev parent reply other threads:[~2014-06-03 12:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 12:09 [PATCH 1/2] gpio: lpc32xx: Make of_device_id array const Jingoo Han
2014-06-03 12:10 ` [PATCH 2/2] gpio: pxa: " Jingoo Han
2014-06-04 3:28 ` Neil Zhang
2014-06-03 12:11 ` Roland Stigge [this message]
2014-06-12 7:37 ` [PATCH 1/2] gpio: lpc32xx: " Linus Walleij
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=538DBB85.4030201@antcom.de \
--to=stigge@antcom.de \
--cc=gnurou@gmail.com \
--cc=jg1.han@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.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 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).