From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>,
linux-kernel@vger.kernel.org
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>
Subject: [PATCH 11/16] mfd: max8998: Make of_device_id array const
Date: Tue, 13 May 2014 12:58:48 +0200 [thread overview]
Message-ID: <1399978733-13662-11-git-send-email-k.kozlowski@samsung.com> (raw)
In-Reply-To: <1399978733-13662-1-git-send-email-k.kozlowski@samsung.com>
Array of struct of_device_id may be be const as expected by both
of_match_table field and of_match_node() call.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/mfd/max8998.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/max8998.c b/drivers/mfd/max8998.c
index 592db06098e6..a37cb7444b6e 100644
--- a/drivers/mfd/max8998.c
+++ b/drivers/mfd/max8998.c
@@ -132,7 +132,7 @@ int max8998_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask)
EXPORT_SYMBOL(max8998_update_reg);
#ifdef CONFIG_OF
-static struct of_device_id max8998_dt_match[] = {
+static const struct of_device_id max8998_dt_match[] = {
{ .compatible = "maxim,max8998", .data = (void *)TYPE_MAX8998 },
{ .compatible = "national,lp3974", .data = (void *)TYPE_LP3974 },
{ .compatible = "ti,lp3974", .data = (void *)TYPE_LP3974 },
--
1.9.1
next prev parent reply other threads:[~2014-05-13 11:02 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-13 10:58 [PATCH 01/16] mfd: max14577: Make mfd_cell array const Krzysztof Kozlowski
2014-05-13 10:58 ` [PATCH 02/16] mfd: max14577: Make of_device_id " Krzysztof Kozlowski
2014-05-19 8:28 ` Lee Jones
2014-05-13 10:58 ` [PATCH 03/16] mfd: ipaq-micro: Make mfd_cell " Krzysztof Kozlowski
2014-05-16 13:37 ` Linus Walleij
2014-05-19 8:24 ` Lee Jones
2014-05-13 10:58 ` [PATCH 04/16] mfd: db8500-prcmu: " Krzysztof Kozlowski
2014-05-16 13:37 ` Linus Walleij
2014-05-19 8:24 ` Lee Jones
2014-05-13 10:58 ` [PATCH 05/16] mfd: kempld-core: " Krzysztof Kozlowski
2014-05-14 21:12 ` kevin.strasser
2014-05-19 8:25 ` Lee Jones
2014-05-13 10:58 ` [PATCH 06/16] mfd: lp3943: " Krzysztof Kozlowski
2014-05-13 14:55 ` Milo Kim
2014-05-19 8:26 ` Lee Jones
2014-05-13 10:58 ` [PATCH 07/16] mfd: rtsx_usb: " Krzysztof Kozlowski
2014-05-15 9:17 ` Roger
2014-05-19 8:25 ` Lee Jones
2014-05-13 10:58 ` [PATCH 08/16] mfd: wm8400-core: " Krzysztof Kozlowski
2014-05-13 11:35 ` Charles Keepax
2014-05-19 8:26 ` Lee Jones
2014-05-13 10:58 ` [PATCH 09/16] mfd: sec-core: Make of_device_id " Krzysztof Kozlowski
2014-05-19 8:33 ` Lee Jones
2014-05-13 10:58 ` [PATCH 10/16] mfd: omap-usb-host: " Krzysztof Kozlowski
2014-05-19 8:32 ` Lee Jones
2014-05-13 10:58 ` Krzysztof Kozlowski [this message]
2014-05-19 8:31 ` [PATCH 11/16] mfd: max8998: " Lee Jones
2014-05-13 10:58 ` [PATCH 12/16] mfd: max8997: " Krzysztof Kozlowski
2014-05-19 8:31 ` Lee Jones
2014-05-13 10:58 ` [PATCH 13/16] mfd: as3711: " Krzysztof Kozlowski
2014-05-19 8:27 ` Lee Jones
2014-05-13 10:58 ` [PATCH 14/16] mfd: max77686: " Krzysztof Kozlowski
2014-05-19 8:28 ` Lee Jones
2014-05-13 10:58 ` [PATCH 15/16] mfd: max77693: " Krzysztof Kozlowski
2014-05-13 11:42 ` Chanwoo Choi
2014-05-19 8:26 ` Lee Jones
2014-05-13 10:58 ` [PATCH 16/16] mfd: max8907: " Krzysztof Kozlowski
2014-05-19 8:27 ` Lee Jones
2014-05-19 8:23 ` [PATCH 01/16] mfd: max14577: Make mfd_cell " Lee Jones
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=1399978733-13662-11-git-send-email-k.kozlowski@samsung.com \
--to=k.kozlowski@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.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).