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)