OSDN Git Service

mfd: wm8994: Allow to configure Speaker Mode Pullup from dts
authorAlberto Panizzo <alberto@amarulasolutions.com>
Mon, 9 Jul 2018 17:46:44 +0000 (19:46 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2018 07:13:25 +0000 (08:13 +0100)
Configuring Speaker Mode Pullup was already supported in pdata, but not
in the dts.

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm8994-core.c

index a944841..fa4b1b7 100644 (file)
@@ -302,6 +302,8 @@ static int wm8994_set_pdata_from_of(struct wm8994 *wm8994)
        if (of_find_property(np, "wlf,ldoena-always-driven", NULL))
                pdata->lineout2fb = true;
 
+       pdata->spkmode_pu = of_property_read_bool(np, "wlf,spkmode-pu");
+
        pdata->ldo[0].enable = of_get_named_gpio(np, "wlf,ldo1ena", 0);
        if (pdata->ldo[0].enable < 0)
                pdata->ldo[0].enable = 0;