kernel_007_thermal.patch 795 B

123456789101112131415161718192021222324
  1. diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
  2. index fc3ec3714..05b0e7c8d 100644
  3. --- a/drivers/thermal/sun8i_thermal.c
  4. +++ b/drivers/thermal/sun8i_thermal.c
  5. @@ -139,6 +139,7 @@ static const struct thermal_zone_of_device_ops ths_ops = {
  6. };
  7. static const struct regmap_config config = {
  8. + .name = "thermal",
  9. .reg_bits = 32,
  10. .val_bits = 32,
  11. .reg_stride = 4,
  12. @@ -640,9 +641,9 @@ static const struct ths_thermal_chip sun50i_h5_ths = {
  13. static const struct ths_thermal_chip sun50i_h6_ths = {
  14. .sensor_num = 2,
  15. .has_bus_clk_reset = true,
  16. - .ft_deviation = 7000,
  17. + .ft_deviation = -7000,
  18. .offset = 187744,
  19. - .scale = 672,
  20. + .scale = 550,
  21. .temp_data_base = SUN50I_H6_THS_TEMP_DATA,
  22. .calibrate = sun50i_h6_ths_calibrate,
  23. .init = sun50i_h6_thermal_init,