From: Jingoo Han <jg1.han@samsung.com>
To: 'Linus Walleij' <linus.walleij@linaro.org>
Cc: 'Alexandre Courbot' <gnurou@gmail.com>,
linux-gpio@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com>,
'Neil Zhang' <zhangwm@marvell.com>,
'Eric Miao' <eric.y.miao@gmail.com>
Subject: [PATCH 2/2] gpio: pxa: Make of_device_id array const
Date: Tue, 03 Jun 2014 21:10:25 +0900 [thread overview]
Message-ID: <002401cf7f24$cd028b80$6707a280$%han@samsung.com> (raw)
In-Reply-To: <002301cf7f24$9beec360$d3cc4a20$%han@samsung.com>
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-pxa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c
index 42e6e64..52bbda0 100644
--- a/drivers/gpio/gpio-pxa.c
+++ b/drivers/gpio/gpio-pxa.c
@@ -498,7 +498,7 @@ static int pxa_gpio_nums(struct platform_device *pdev)
}
#ifdef CONFIG_OF
-static struct of_device_id pxa_gpio_dt_ids[] = {
+static const struct of_device_id pxa_gpio_dt_ids[] = {
{ .compatible = "intel,pxa25x-gpio", .data = &pxa25x_id, },
{ .compatible = "intel,pxa26x-gpio", .data = &pxa26x_id, },
{ .compatible = "intel,pxa27x-gpio", .data = &pxa27x_id, },
--
1.7.10.4
next prev parent reply other threads:[~2014-06-03 12:10 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 ` Jingoo Han [this message]
2014-06-04 3:28 ` [PATCH 2/2] gpio: pxa: " Neil Zhang
2014-06-03 12:11 ` [PATCH 1/2] gpio: lpc32xx: " Roland Stigge
2014-06-12 7:37 ` 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='002401cf7f24$cd028b80$6707a280$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=eric.y.miao@gmail.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=zhangwm@marvell.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;
as well as URLs for NNTP newsgroup(s).