• Caesar Wang's avatar
    thermal: rockchip: optimize the conversion table · cadf29dc
    Caesar Wang authored
    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: default avatarCaesar Wang <wxt@rock-chips.com>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    cadf29dc
rockchip_thermal.c 33.5 KB