mfd: max14577: Add of_compatible to extcon mfd_cell
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 28 Jan 2014 12:18:28 +0000 (13:18 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:03 +0000 (08:58 +0000)
Add of_compatible ("maxim,max14577-muic") to the mfd_cell for extcon
driver. If entry with such compatible is present in the DTS, the extcon
driver will have of_node set.

This may be useful for extcon consumers and it is documented in
bindings documentation.

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

index 71aa14a..c9859d1 100644 (file)
 #include <linux/mfd/max14577-private.h>
 
 static struct mfd_cell max14577_devs[] = {
-       { .name = "max14577-muic", },
+       {
+               .name = "max14577-muic",
+               .of_compatible = "maxim,max14577-muic",
+       },
        {
                .name = "max14577-regulator",
                .of_compatible = "maxim,max14577-regulator",