Re: [PATCH v2 3/5] thermal: rockchip: fixes invalid temperature case

2016-11-23 Thread Caesar Wang
在 2016年11月24日 02:35, Brian Norris 写道: Hi Caesar, On Wed, Nov 23, 2016 at 10:29:32PM +0800, Caesar Wang wrote: The temp_to_code function will return 0 when we set the temperature to a invalid value (e.g. 61C, 62C, 63C), that's unpractical. This patch will prevent this case happening. That wi

Re: [PATCH v2 3/5] thermal: rockchip: fixes invalid temperature case

2016-11-23 Thread Brian Norris
Hi Caesar, On Wed, Nov 23, 2016 at 10:29:32PM +0800, Caesar Wang wrote: > The temp_to_code function will return 0 when we set the temperature to a > invalid value (e.g. 61C, 62C, 63C), that's unpractical. This patch > will prevent this case happening. That will return the max analog value to >

[PATCH v2 3/5] thermal: rockchip: fixes invalid temperature case

2016-11-23 Thread Caesar Wang
The temp_to_code function will return 0 when we set the temperature to a invalid value (e.g. 61C, 62C, 63C), that's unpractical. This patch will prevent this case happening. That will return the max analog value to indicate the temperature is invalid or over table temperature range. Signed-off