Skip to content

of-thermal API change

Eduardo Valentin linux-devicetree linux-pm linux-tegra lkml lm-sensors 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest1 patch 3 repliesIn review
  2. v41 patch 7 repliesSuperseded
  3. v21 patch 2 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1thermal: of: improve of-thermal sensor registration APIdrivers/hwmon/lm75.c drivers/hwmon/ntc_thermistor.c drivers/hwmon/tmp102.c +4 more+62 -373 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchMikko PerttunenAlexandre CourbotLukasz MajewskiGuenter Roeck
1/1T-b R-b R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCHv5 0/1] of-thermal API change

I am proposing this change in the of-thermal API to sensors. The only single change is how we represent the callbacks between sensor drivers and of-thermal.

Essentially, instead of passing callbacks as parameters of the registration function, now of-thermal users will pass an ops. It is a simple way of growing the callback API smoothly.

There are already proposals to grow this API. Thus I would like to change this before we start to introduce new callbacks here.

I changed the existing of-thermal users to adapt accordingly.

Let me know if you have objections.

BR,

Eduardo Valentin (1):
thermal: of: improve of-thermal sensor registration API

 drivers/hwmon/lm75.c                               |  9 +++--
 drivers/hwmon/ntc_thermistor.c                     |  6 +++-
 drivers/hwmon/tmp102.c                             |  6 +++-
 drivers/thermal/of-thermal.c                       | 39 ++++++++++------------
 drivers/thermal/tegra_soctherm.c                   |  7 ++--
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c |  8 +++--
 include/linux/thermal.h                            | 24 +++++++++----
 7 files changed, 62 insertions(+), 37 deletions(-)
Signature · 1 line
2.1.3