Re: [PATCH 01/15] thermal: consistently use int for temperatures

2015-05-20 Thread Mikko Perttunen
On 05/20/15 11:34, Sascha Hauer wrote: On Wed, May 20, 2015 at 10:12:44AM +0300, Mikko Perttunen wrote: On 05/13/15 11:52, Sascha Hauer wrote: The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive

Re: [PATCH 01/15] thermal: consistently use int for temperatures

2015-05-20 Thread Sascha Hauer
On Wed, May 20, 2015 at 10:12:44AM +0300, Mikko Perttunen wrote: > On 05/13/15 11:52, Sascha Hauer wrote: > >The thermal code uses int, long and unsigned long for temperatures > >in different places. Using an unsigned type limits the thermal framework > >to positive temperatures without need.

Re: [PATCH 01/15] thermal: consistently use int for temperatures

2015-05-20 Thread Mikko Perttunen
On 05/13/15 11:52, Sascha Hauer wrote: The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. 'long' is 64bit on several architectures which is not needed. Consistently use

Re: [PATCH 01/15] thermal: consistently use int for temperatures

2015-05-20 Thread Mikko Perttunen
On 05/13/15 11:52, Sascha Hauer wrote: The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. 'long' is 64bit on several architectures which is not needed. Consistently use

Re: [PATCH 01/15] thermal: consistently use int for temperatures

2015-05-20 Thread Sascha Hauer
On Wed, May 20, 2015 at 10:12:44AM +0300, Mikko Perttunen wrote: On 05/13/15 11:52, Sascha Hauer wrote: The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. 'long' is

Re: [PATCH 01/15] thermal: consistently use int for temperatures

2015-05-20 Thread Mikko Perttunen
On 05/20/15 11:34, Sascha Hauer wrote: On Wed, May 20, 2015 at 10:12:44AM +0300, Mikko Perttunen wrote: On 05/13/15 11:52, Sascha Hauer wrote: The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive

[PATCH 01/15] thermal: consistently use int for temperatures

2015-05-13 Thread Sascha Hauer
The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. 'long' is 64bit on several architectures which is not needed. Consistently use a plain 'int' for temperatures.

[PATCH 01/15] thermal: consistently use int for temperatures

2015-05-13 Thread Sascha Hauer
The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. 'long' is 64bit on several architectures which is not needed. Consistently use a plain 'int' for temperatures.