Re: [PATCH v11 04/10] power: power_supply: Add power_supply_battery_info and API

Sebastian Reichel
2017-03-29T13:50:24Z

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

Hi,

On Sat, Mar 25, 2017 at 04:19:24PM -0700, Liam Breck wrote:
> >> > + dev_warn(&psy->dev, "%s currently only supports devicetree\n",
> >> > + __func__);
> >> > + return -ENXIO;
> >> > + }
> >> > +
> >> > + battery_np = of_parse_phandle(psy->of_node, "monitored-battery", 0);
>
> Does that change? If not, will psy->dev work in device_property_read_* ?

Oh right, we don't have a device for usage with device_property_read_*.
Then don't mind for now. We can think about this once ACPI/platform based
init is required. Probably simple-battery should get a real driver
at that point.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]