Re: [PATCH v2] thermal: consistently use int for trip temp

2016-04-12 Thread Wei Ni
On 2016年03月14日 17:44, Wei Ni wrote: > > > On 2016年03月09日 05:09, Eduardo Valentin wrote: >> On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote: >>> >>> >>> On 2016年03月07日 16:23, Wei Ni wrote: There had a build error in previous patch. Fixed it in this version. Please review

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-04-12 Thread Wei Ni
On 2016年03月14日 17:44, Wei Ni wrote: > > > On 2016年03月09日 05:09, Eduardo Valentin wrote: >> On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote: >>> >>> >>> On 2016年03月07日 16:23, Wei Ni wrote: There had a build error in previous patch. Fixed it in this version. Please review

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-14 Thread Wei Ni
On 2016年03月09日 05:09, Eduardo Valentin wrote: > On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote: >> >> >> On 2016年03月07日 16:23, Wei Ni wrote: >>> There had a build error in previous patch. >>> Fixed it in this version. >>> Please review it. >> >> Add CC: linux...@vger.kernel.org >> Hi

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-14 Thread Wei Ni
On 2016年03月09日 05:09, Eduardo Valentin wrote: > On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote: >> >> >> On 2016年03月07日 16:23, Wei Ni wrote: >>> There had a build error in previous patch. >>> Fixed it in this version. >>> Please review it. >> >> Add CC: linux...@vger.kernel.org >> Hi

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-08 Thread Eduardo Valentin
On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote: > > > On 2016年03月07日 16:23, Wei Ni wrote: > > There had a build error in previous patch. > > Fixed it in this version. > > Please review it. > > Add CC: linux...@vger.kernel.org > > > > > Thanks. > > Wei. > > > > On 2016年03月03日 17:33,

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-08 Thread Eduardo Valentin
On Tue, Mar 08, 2016 at 11:24:39AM +0800, Wei Ni wrote: > > > On 2016年03月07日 16:23, Wei Ni wrote: > > There had a build error in previous patch. > > Fixed it in this version. > > Please review it. > > Add CC: linux...@vger.kernel.org > > > > > Thanks. > > Wei. > > > > On 2016年03月03日 17:33,

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-07 Thread Wei Ni
On 2016年03月07日 16:23, Wei Ni wrote: > There had a build error in previous patch. > Fixed it in this version. > Please review it. Add CC: linux...@vger.kernel.org > > Thanks. > Wei. > > On 2016年03月03日 17:33, Wei Ni wrote: >> The commit 17e8351a7739 consistently use int for temperature, >>

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-07 Thread Wei Ni
On 2016年03月07日 16:23, Wei Ni wrote: > There had a build error in previous patch. > Fixed it in this version. > Please review it. Add CC: linux...@vger.kernel.org > > Thanks. > Wei. > > On 2016年03月03日 17:33, Wei Ni wrote: >> The commit 17e8351a7739 consistently use int for temperature, >>

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-07 Thread Wei Ni
There had a build error in previous patch. Fixed it in this version. Please review it. Thanks. Wei. On 2016年03月03日 17:33, Wei Ni wrote: > The commit 17e8351a7739 consistently use int for temperature, > however it missed a few in trip temperature and thermal_core. > > In current codes, the

Re: [PATCH v2] thermal: consistently use int for trip temp

2016-03-07 Thread Wei Ni
There had a build error in previous patch. Fixed it in this version. Please review it. Thanks. Wei. On 2016年03月03日 17:33, Wei Ni wrote: > The commit 17e8351a7739 consistently use int for temperature, > however it missed a few in trip temperature and thermal_core. > > In current codes, the

[PATCH v2] thermal: consistently use int for trip temp

2016-03-03 Thread Wei Ni
The commit 17e8351a7739 consistently use int for temperature, however it missed a few in trip temperature and thermal_core. In current codes, the trip->temperature used "unsigned long" and zone->temperature used"int", if the temperature is negative value, it will get wrong result when compare

[PATCH v2] thermal: consistently use int for trip temp

2016-03-03 Thread Wei Ni
The commit 17e8351a7739 consistently use int for temperature, however it missed a few in trip temperature and thermal_core. In current codes, the trip->temperature used "unsigned long" and zone->temperature used"int", if the temperature is negative value, it will get wrong result when compare