On Fri, Dec 11, 2020 at 7:39 PM Stephan Gerhold <stephan@xxxxxxxxxxx> wrote: > BMG160 needs VDD and VDDIO regulators that might need to be explicitly > enabled. Add some rudimentary support to obtain and enable these > regulators during probe() and disable them using a devm action. > > Signed-off-by: Stephan Gerhold <stephan@xxxxxxxxxxx> > --- > Changes in v2: > - Do regulator_bulk_enable() immediately after devm_regulator_bulk_get() > - Simplify error handling using devm_add_action_or_reset() Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij