diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-05-13 06:58:38 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-03 03:11:37 -0400 |
commit | 92725493d276ee9789d1c05dd2970057fb7d7c22 (patch) | |
tree | c33c380f540f2c3f08249e6f4fc881d00c1a636c /drivers/mfd/max14577.c | |
parent | 81cf4f2d988fbc199fcf4757147b39414188168e (diff) |
mfd: max14577: Make mfd_cell array const
mfd_add_devices() expects array of struct mfd_cell to be const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max14577.c')
-rw-r--r-- | drivers/mfd/max14577.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index 6c81590f8464..36de88d0dedd 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <linux/mfd/max14577.h> | 26 | #include <linux/mfd/max14577.h> |
27 | #include <linux/mfd/max14577-private.h> | 27 | #include <linux/mfd/max14577-private.h> |
28 | 28 | ||
29 | static struct mfd_cell max14577_devs[] = { | 29 | static const struct mfd_cell max14577_devs[] = { |
30 | { | 30 | { |
31 | .name = "max14577-muic", | 31 | .name = "max14577-muic", |
32 | .of_compatible = "maxim,max14577-muic", | 32 | .of_compatible = "maxim,max14577-muic", |
@@ -38,7 +38,7 @@ static struct mfd_cell max14577_devs[] = { | |||
38 | { .name = "max14577-charger", }, | 38 | { .name = "max14577-charger", }, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static struct mfd_cell max77836_devs[] = { | 41 | static const struct mfd_cell max77836_devs[] = { |
42 | { | 42 | { |
43 | .name = "max77836-muic", | 43 | .name = "max77836-muic", |
44 | .of_compatible = "maxim,max77836-muic", | 44 | .of_compatible = "maxim,max77836-muic", |
@@ -292,7 +292,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c, | |||
292 | struct device_node *np = i2c->dev.of_node; | 292 | struct device_node *np = i2c->dev.of_node; |
293 | int ret = 0; | 293 | int ret = 0; |
294 | const struct regmap_irq_chip *irq_chip; | 294 | const struct regmap_irq_chip *irq_chip; |
295 | struct mfd_cell *mfd_devs; | 295 | const struct mfd_cell *mfd_devs; |
296 | unsigned int mfd_devs_size; | 296 | unsigned int mfd_devs_size; |
297 | int irq_flags; | 297 | int irq_flags; |
298 | 298 | ||