mfd: max77693: Map charger device to its own of_node
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 20 Oct 2014 12:34:46 +0000 (14:34 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 25 Nov 2014 16:18:46 +0000 (16:18 +0000)
Add a "maxim,max77693-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 max77693 charger driver in next patches to obtain battery
configuration from DTS.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max77693.c

index b57ae93b1cbafb8731f287cf36e65909499ca912..9d75a364397d39109b2cfb2439f226a7e425a404 100644 (file)
 
 static const struct mfd_cell max77693_devs[] = {
        { .name = "max77693-pmic", },
-       { .name = "max77693-charger", },
+       {
+               .name = "max77693-charger",
+               .of_compatible = "maxim,max77693-charger",
+       },
        { .name = "max77693-muic", },
        {
                .name = "max77693-haptic",