Re: [RFC PATCH v3 4/9] power: supply: Add batinfo getters usable prior supply registration

From: Linus Walleij
Date: Thu Nov 18 2021 - 20:42:59 EST

On Tue, Nov 16, 2021 at 1:26 PM Matti Vaittinen
<matti.vaittinen@xxxxxxxxxxxxxxxxx> wrote:

> In some cases it is beneficial to be able to query the static battery
> node properties prior power_supply registration. The device-tree
> parsing does not really depend on psy so add APIs which can
> be used without the power-supply. Also, convert APIs to operate on
> fwnode while at it.
> Signed-off-by: Matti Vaittinen <matti.vaittinen@xxxxxxxxxxxxxxxxx>

This looks quite useful!
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Linus Walleij