mfd: madera: Add supply mapping for MICVDD
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 2 Mar 2018 17:30:04 +0000 (17:30 +0000)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 07:57:30 +0000 (16:57 +0900)
Currently we are relying on the exact match of the regulator name to
find MICVDD, we should add an explicit supply mapping to allow this to
be found more reliably.

Change-Id: Ib4453731d873827b80fb75ee43564c21044329e4
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
drivers/mfd/madera-core.c

index 424447b8c516f3f56c8a1ee3f24e26af9af171ce..379e132f1c3de7247d289f8b8042c2df1b438767 100644 (file)
@@ -60,7 +60,11 @@ static const struct mfd_cell cs47l35_devs[] = {
        { .name = "madera-irq", },
        { .name = "madera-micsupp" },
        { .name = "madera-gpio", },
-       { .name = "madera-extcon", },
+       {
+               .name = "madera-extcon",
+               .parent_supplies = cs47l35_supplies,
+               .num_parent_supplies = 1, /* We only need MICVDD */
+       },
        {
                .name = "cs47l35-codec",
                .parent_supplies = cs47l35_supplies,
@@ -84,7 +88,11 @@ static const struct mfd_cell cs47l85_devs[] = {
        { .name = "madera-irq", },
        { .name = "madera-micsupp", },
        { .name = "madera-gpio", },
-       { .name = "madera-extcon", },
+       {
+               .name = "madera-extcon",
+               .parent_supplies = cs47l85_supplies,
+               .num_parent_supplies = 1, /* We only need MICVDD */
+       },
        {
                .name = "cs47l85-codec",
                .parent_supplies = cs47l85_supplies,
@@ -106,7 +114,11 @@ static const struct mfd_cell cs47l90_devs[] = {
        { .name = "madera-irq", },
        { .name = "madera-micsupp", },
        { .name = "madera-gpio", },
-       { .name = "madera-extcon", },
+       {
+               .name = "madera-extcon",
+               .parent_supplies = cs47l90_supplies,
+               .num_parent_supplies = 1, /* We only need MICVDD */
+       },
        {
                .name = "cs47l90-codec",
                .parent_supplies = cs47l90_supplies,
@@ -125,7 +137,11 @@ static const struct mfd_cell cs47l92_devs[] = {
        { .name = "madera-irq", },
        { .name = "madera-micsupp", },
        { .name = "madera-gpio" },
-       { .name = "madera-extcon" },
+       {
+               .name = "madera-extcon",
+               .parent_supplies = cs47l92_supplies,
+               .num_parent_supplies = 1, /* We only need MICVDD */
+       },
        {
                .name = "cs47l92-codec",
                .parent_supplies = cs47l92_supplies,