RE: [PATCH 2/2] power_supply: Register power supply for thermal cooling device

2012-11-18 Thread Pallala, Ramakrishna
> > +static int ps_get_cur_chrage_cntl_limit(struct thermal_cooling_device > > +*tcd, > > Typo, "charge". > > > + unsigned long *state) > > +{ > > + struct power_supply *psy; > > + union power_supply_propval val; > > + int ret; > > + > > + WARN_ON

Re: [PATCH 2/2] power_supply: Register power supply for thermal cooling device

2012-11-17 Thread Anton Vorontsov
On Tue, Oct 09, 2012 at 10:25:59PM +0530, Ramakrishna Pallala wrote: > This patch registers the power supply as a cooling device if the > power supply has support for charge throttling. > > Now with this change low level drivers need not register with > thermal framework as it is automatically don