mfd: max14577: Map charger device to its own of_node
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 12 Sep 2014 06:53:54 +0000 (08:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 24 Sep 2014 12:42:46 +0000 (13:42 +0100)
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>
drivers/mfd/max14577.c

index 4a5e885383f8a5a866d78545b6f59150a0d6cb2f..6599407b56247e1413fddf00f0f6deeaf9f53c4b 100644 (file)
@@ -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[] = {