summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max14577.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-05-13 12:58:38 +0200
committerLee Jones <lee.jones@linaro.org>2014-06-03 08:11:37 +0100
commit92725493d276ee9789d1c05dd2970057fb7d7c22 (patch)
treec33c380f540f2c3f08249e6f4fc881d00c1a636c /drivers/mfd/max14577.c
parent81cf4f2d988fbc199fcf4757147b39414188168e (diff)
downloadlinux-92725493d276ee9789d1c05dd2970057fb7d7c22.tar.bz2
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.c6
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 @@
#include <linux/mfd/max14577.h>
#include <linux/mfd/max14577-private.h>
-static struct mfd_cell max14577_devs[] = {
+static const struct mfd_cell max14577_devs[] = {
{
.name = "max14577-muic",
.of_compatible = "maxim,max14577-muic",
@@ -38,7 +38,7 @@ static struct mfd_cell max14577_devs[] = {
{ .name = "max14577-charger", },
};
-static struct mfd_cell max77836_devs[] = {
+static const struct mfd_cell max77836_devs[] = {
{
.name = "max77836-muic",
.of_compatible = "maxim,max77836-muic",
@@ -292,7 +292,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c,
struct device_node *np = i2c->dev.of_node;
int ret = 0;
const struct regmap_irq_chip *irq_chip;
- struct mfd_cell *mfd_devs;
+ const struct mfd_cell *mfd_devs;
unsigned int mfd_devs_size;
int irq_flags;