Re: [PATCH 3/9] Thermal: Add APIs to bind cdev to new zone structure

2013-01-09 Thread Greg KH
; linux-kernel@vger.kernel.org; > > eduardo.valen...@ti.com; hongbo.zh...@linaro.org; w...@nvidia.com > > Subject: Re: [PATCH 3/9] Thermal: Add APIs to bind cdev to new zone > > structure > > > > On Mon, Jan 07, 2013 at 12:43:20PM +0530, Durgadoss R wrote: > > &

RE: [PATCH 3/9] Thermal: Add APIs to bind cdev to new zone structure

2013-01-09 Thread R, Durgadoss
.com > Subject: Re: [PATCH 3/9] Thermal: Add APIs to bind cdev to new zone > structure > > On Mon, Jan 07, 2013 at 12:43:20PM +0530, Durgadoss R wrote: > > +struct thermal_cooling_device *get_cdev_by_name(const char *name) > > +{ > > + struct thermal_cooling_device *

Re: [PATCH 3/9] Thermal: Add APIs to bind cdev to new zone structure

2013-01-07 Thread Greg KH
On Mon, Jan 07, 2013 at 12:43:20PM +0530, Durgadoss R wrote: > +struct thermal_cooling_device *get_cdev_by_name(const char *name) > +{ > + struct thermal_cooling_device *pos; > + struct thermal_cooling_device *cdev = NULL; > + > + mutex_lock(&cdev_list_lock); > + for_each_cdev(pos)

[PATCH 3/9] Thermal: Add APIs to bind cdev to new zone structure

2013-01-06 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h |9 + 2 files ch