On Mon, May 14, 2018 at 10:06 AM, Linus Walleij <[email protected]> wrote: > Instead of passing a global GPIO number, pass a descriptor looked > up from the device tree configuration node. > > Cc: Chanwoo Choi <[email protected]> > Cc: Krzysztof Kozlowski <[email protected]> > Cc: Bartlomiej Zolnierkiewicz <[email protected]> > Signed-off-by: Linus Walleij <[email protected]> > --- > ChangeLog v2->v3: > - Name the regulator "max77686-regulator" > - Set the regulator to NULL on erroneous lookup, restoring the > old init data lookup behaviour. > ChangeLog v1->v2: > - Rebase the patch on the other changes. > --- > drivers/regulator/max77686-regulator.c | 19 ++++++++++++------- > 1 file changed, 12 insertions(+), 7 deletions(-)
Reviewed-by: Krzysztof Kozlowski <[email protected]> Tested on Odroid U3 (with max77686 although not using any GPIOs for regulators, so at least default paths are not broken): Tested-by: Krzysztof Kozlowski <[email protected]> Best regards, Krzysztof

