Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Alberto Panizzo and committed by
Lee Jones
102370fb 80d139b8

+2
+2
drivers/mfd/wm8994-core.c
··· 302 302 if (of_find_property(np, "wlf,ldoena-always-driven", NULL)) 303 303 pdata->lineout2fb = true; 304 304 305 + pdata->spkmode_pu = of_property_read_bool(np, "wlf,spkmode-pu"); 306 + 305 307 pdata->ldo[0].enable = of_get_named_gpio(np, "wlf,ldo1ena", 0); 306 308 if (pdata->ldo[0].enable < 0) 307 309 pdata->ldo[0].enable = 0;