mbox series

[0/4] thermal/drivers/qcom: Code refactoring

Message ID 20220713145655.3844109-1-carlos.bilbao@amd.com (mailing list archive)
Headers show
Series thermal/drivers/qcom: Code refactoring | expand

Message

Carlos Bilbao July 13, 2022, 2:56 p.m. UTC
This patchset refactors the code of Qualcomm thermal drivers, with simpler
return values, logic for two functions, and a constant array for maximum
number of sensors per version.

Carlos Bilbao (4):
  thermal/drivers/qcom: Simplify returns for tsens-8060.c
  thermal/drivers/qcom: Simplify function code_to_degc()
  thermal/drivers/qcom: Simplify function calibrate_8960()
  thermal/drivers/qcom: Use array for max num sensors per version
---
 drivers/thermal/qcom/tsens-8960.c   | 33 ++++++++---------------------
 drivers/thermal/qcom/tsens-common.c | 15 ++++++-------
 drivers/thermal/qcom/tsens-v0_1.c   |  4 ++--
 drivers/thermal/qcom/tsens-v1.c     |  2 +-
 drivers/thermal/qcom/tsens-v2.c     |  2 +-
 drivers/thermal/qcom/tsens.h        |  6 ++++++
 6 files changed, 25 insertions(+), 37 deletions(-)