mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] regulator: dummy: Make regulator_desc array const
@ 2014-10-27 15:44 Krzysztof Kozlowski
  2014-10-27 15:44 ` [PATCH 2/4] regulator: max77693: " Krzysztof Kozlowski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2014-10-27 15:44 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Sangbeom Kim, linux-kernel; +Cc: Krzysztof Kozlowski

The regulator_register() expects array of 'regulator_desc' to be const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
 drivers/regulator/dummy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c
index 2436db9e2ca3..7aef9e4c6fbf 100644
--- a/drivers/regulator/dummy.c
+++ b/drivers/regulator/dummy.c
@@ -33,7 +33,7 @@ static struct regulator_init_data dummy_initdata = {
 
 static struct regulator_ops dummy_ops;
 
-static struct regulator_desc dummy_desc = {
+static const struct regulator_desc dummy_desc = {
 	.name = "regulator-dummy",
 	.id = -1,
 	.type = REGULATOR_VOLTAGE,
-- 
1.9.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-28  0:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-27 15:44 [PATCH 1/4] regulator: dummy: Make regulator_desc array const Krzysztof Kozlowski
2014-10-27 15:44 ` [PATCH 2/4] regulator: max77693: " Krzysztof Kozlowski
2014-10-27 15:44 ` [PATCH 3/4] regulator: max77802: " Krzysztof Kozlowski
2014-10-27 15:44 ` [PATCH 4/4] regulator: s2mpa01: " Krzysztof Kozlowski
2014-10-28  0:03 ` [PATCH 1/4] regulator: dummy: " Mark Brown

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®