summaryrefslogtreecommitdiff
path: root/drivers/mfd/max14577.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-09-12 08:53:54 +0200
committerLee Jones <lee.jones@linaro.org>2014-09-24 13:42:46 +0100
commit4476767cff44737f8965b34af0f375ac49f7fafa (patch)
treef85d28297be801ec17f892559c2dea682d39b6ef /drivers/mfd/max14577.c
parent25cc24c200dcba21bd1f1a59a01741185062dc0e (diff)
downloadlwn-4476767cff44737f8965b34af0f375ac49f7fafa.tar.gz
lwn-4476767cff44737f8965b34af0f375ac49f7fafa.zip
mfd: max14577: Map charger device to its own of_node
Add a "maxim,max14577-charger" of_compatible to the mfd_cell so the MFD child device (the charger) will have its own of_node set. This will be used by the max14577 charger driver in next patches to obtain battery configuration from DTS. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max14577.c')
-rw-r--r--drivers/mfd/max14577.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index 4a5e885383f8..6599407b5624 100644
--- a/drivers/mfd/max14577.c
+++ b/drivers/mfd/max14577.c
@@ -35,7 +35,10 @@ static const struct mfd_cell max14577_devs[] = {
.name = "max14577-regulator",
.of_compatible = "maxim,max14577-regulator",
},
- { .name = "max14577-charger", },
+ {
+ .name = "max14577-charger",
+ .of_compatible = "maxim,max14577-charger",
+ },
};
static const struct mfd_cell max77836_devs[] = {