Re: [PATCH v7 6/7] power: act8945a_charger: Add max current property

2016-08-22 Thread Sebastian Reichel
Hi, On Mon, Aug 22, 2016 at 02:49:16PM +0800, Wenyou Yang wrote: > [...] > > - chglev_pin = of_get_named_gpio_flags(np, > - "active-semi,chglev-gpios", 0, &flags); > - > - if (gpio_is_valid(chglev_pin)) { > - gpio_set_value(chglev_pin, > -

[PATCH v7 6/7] power: act8945a_charger: Add max current property

2016-08-21 Thread Wenyou Yang
Add the power supply's current max property, POWER_SUPPLY_PROP_CURRENT_MAX. Signed-off-by: Wenyou Yang --- Changes in v7: - For "chglev-gpios", use gpiod_get() to fix devm_gpiod_get() wrong use with parent device as *dev argument. - Add the handle -EPROBE_DEFER returned from gpiod_get "chgl