# Editor crap (emacs, vim, ...) *.swp *.orig \#*\# .\#* .*.sw[a-z] *.un~ # Hidden files, general things .* *~ # Compiled object files *.slo *.lo *.o # Compiled dynamic libraries *.so # Compiled static libraries *.lai *.la *.a # cscope/ctags index files cscope* tags # Testing folders fuzzing/ # Ignore if someone adapts Makefile Makefile # Other documentation ignores *.md *.ps # Compressed archives *.tar.bz2 *.tar.bz *.tar.xz # Release related stuff .MAIL_MSG # Excluded from ignorance !.gitignore href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2016-12-12 19:05:34 +0800
committerEduardo Valentin <edubezval@gmail.com>2016-12-13 20:32:05 -0800
commitcadf29dc2a8bcaae83e6e4c3229965de747c8601 (patch)
tree3e462282375f2df2e434097b43983c51fe6b5ae4
parentd3530497f5c33530c50acb435b7d54e0a82d8032 (diff)
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>
-rw-r--r--drivers/thermal/rockchip_thermal.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c