Re: [PATCH v7 5/7] power: act8945a_charger: Add capacity level property

2016-08-22 Thread Sebastian Reichel
Hi, On Mon, Aug 22, 2016 at 02:49:15PM +0800, Wenyou Yang wrote: > [...] > > + charger->lbo_gpio = gpiod_get(dev->parent, "active-semi,lbo", GPIOD_IN); > + if (PTR_ERR(charger->lbo_gpio) == -EPROBE_DEFER) { > + dev_info(dev, "probe retry requested for gpio \"lbo\"\n"); > +

[PATCH v7 5/7] power: act8945a_charger: Add capacity level property

2016-08-21 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang --- Changes in v7: - For "lbo-gpios", use gpiod_get() to fix devm_gpiod_ge