From: Alberto Panizzo Date: Mon, 9 Jul 2018 17:46:44 +0000 (+0200) Subject: mfd: wm8994: Allow to configure Speaker Mode Pullup from dts X-Git-Tag: for-linus-20180825~30^2~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=102370fb048a223df4054157d795924928537d11;p=linux-block.git mfd: wm8994: Allow to configure Speaker Mode Pullup from dts Configuring Speaker Mode Pullup was already supported in pdata, but not in the dts. Signed-off-by: Alberto Panizzo Signed-off-by: Anthony Brandon Acked-by: Charles Keepax Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index a944841a55cb..fa4b1b7f6db1 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -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;