1. 21 2月, 2019 2 次提交
  2. 13 2月, 2019 2 次提交
  3. 10 2月, 2019 2 次提交
  4. 23 1月, 2019 2 次提交
  5. 17 1月, 2019 3 次提交
  6. 16 1月, 2019 2 次提交
  7. 05 1月, 2019 5 次提交
  8. 04 1月, 2019 7 次提交
  9. 03 1月, 2019 14 次提交
  10. 02 1月, 2019 1 次提交
    • B
      thermal: generic-adc: Fix adc to temp interpolation · 9d216211
      Bjorn Andersson 提交于
      First correct the edge case to return the last element if we're
      outside the range, rather than at the last element, so that
      interpolation is not omitted for points between the two last entries in
      the table.
      
      Then correct the formula to perform linear interpolation based the two
      points surrounding the read ADC value. The indices for temp are kept as
      "hi" and "lo" to pair with the adc indices, but there's no requirement
      that the temperature is provided in descendent order. mult_frac() is
      used to prevent issues with overflowing the int.
      
      Cc: Laxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
      9d216211