summaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2016-12-12 12:05:33 +0100
committerEduardo Valentin <edubezval@gmail.com>2016-12-14 05:32:03 +0100
commitd3530497f5c33530c50acb435b7d54e0a82d8032 (patch)
treef3729d4381986fcfd3fd14528f780e105fb7d4cc /drivers/message
parentthermal: rockchip: don't pass table structs by value (diff)
downloadlinux-d3530497f5c33530c50acb435b7d54e0a82d8032.tar.xz
linux-d3530497f5c33530c50acb435b7d54e0a82d8032.zip
thermal: rockchip: fixes invalid temperature case
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-by: Caesar Wang <wxt@rock-chips.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions