RE: [PATCH 1/3] power: core: Add generic interface to get battery specification.

2014-11-09 Thread Tc, Jenny
> > >> +ATOMIC_NOTIFIER_HEAD(psy_battery_info_notifier); > > > > Isn't it good to reuse the existing power_supply_notifier for this? > > > >> +enum battery_info_notifier_events { > >> + PSY_BATT_INFO_REGISTERED, > >> + PSY_BATT_INFO_UNREGISTERED, > >> +}; > > > > If we use the power_supply_noti

Re: [PATCH 1/3] power: core: Add generic interface to get battery specification.

2014-11-09 Thread jonghwa3 . lee
On 2014년 11월 08일 19:13, Tc, Jenny wrote: >> +ATOMIC_NOTIFIER_HEAD(psy_battery_info_notifier); > > Isn't it good to reuse the existing power_supply_notifier for this? > >> +enum battery_info_notifier_events { >> +PSY_BATT_INFO_REGISTERED, >> +PSY_BATT_INFO_UNREGISTERED, >> +}; > > If we

RE: [PATCH 1/3] power: core: Add generic interface to get battery specification.

2014-11-08 Thread Tc, Jenny
> +ATOMIC_NOTIFIER_HEAD(psy_battery_info_notifier); Isn't it good to reuse the existing power_supply_notifier for this? > +enum battery_info_notifier_events { > + PSY_BATT_INFO_REGISTERED, > + PSY_BATT_INFO_UNREGISTERED, > +}; If we use the power_supply_notifier, then this can be moved

[PATCH 1/3] power: core: Add generic interface to get battery specification.

2014-10-07 Thread Jonghwa Lee
In power supply system, battery specification's dealt as static information regardless of battery chainging. And it often assumed fuelgauge's role to hold battery specification even same driver is used with different batteries. To make subsystem handles above cases properly, this patch adds helper