]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: rockchip: optimize the conversion table
authorCaesar Wang <wxt@rock-chips.com>
Mon, 12 Dec 2016 11:05:34 +0000 (19:05 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 14 Dec 2016 04:32:05 +0000 (20:32 -0800)
commitcadf29dc2a8bcaae83e6e4c3229965de747c8601
tree3e462282375f2df2e434097b43983c51fe6b5ae4
parentd3530497f5c33530c50acb435b7d54e0a82d8032
thermal: rockchip: optimize the conversion table

In order to support the valid temperature can conver to analog value.
The rockchip thermal driver has not supported the all valid temperature
to convert the analog value. (e.g.: 61C, 62C, 63C....)

For example:
In some cases, we need adjust the trip point.
$cd /sys/class/thermal/thermal_zone*
$echo 68000 > trip_point_0_temp
That will return the max analogic value indicates the invalid before
posting this patch.

So, this patch will optimize the conversion table to support the other
cases.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c