linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] thermal: Align devm_thermal_zone_{device,of_sensor}_register
@ 2018-12-12  1:49 Marek Vasut
  2018-12-12  1:49 ` [PATCH 1/6] thermal: split thermal_zone_of_sensor_register{,_param}() Marek Vasut
                   ` (6 more replies)
  0 siblings, 7 replies; 31+ messages in thread
From: Marek Vasut @ 2018-12-12  1:49 UTC (permalink / raw)
  To: linux-pm
  Cc: linux-renesas-soc, Marek Vasut, Daniel Lezcano, Eduardo Valentin,
	Wolfram Sang, Zhang Rui

This patchset attempts to align devm_thermal_zone_{device,of_sensor}_register()
functions and allow passing tz params to devm_thermal_zone_of_sensor_register()
to allow settings no_hwmon params without digging into the tz structures.

The approach is as follows:
1) Add {devm_,}thermal_zone_of_sensor_register_params(), which behaves just
   like the old variant without _params() suffix, except it takes the struct
   thermal_zone_params as an argument. The old _params()-less version of the
   function is converted to use the new function and pass params = NULL.
   The old _params()-less versions of the functions are retained to avoid
   breaking the ABI.
2) Add the no_hwmon handling into thermal_zone_of_sensor_register_params(),
   that's patch 3.
3) Convert drivers from devm_thermal_zone_of_sensor_register() with structure
   diggings to devm_thermal_zone_of_sensor_register_params() without any
   extra structure digging, that's the rest of the patches.

Marek Vasut (6):
  thermal: split thermal_zone_of_sensor_register{,_param}()
  thermal: split devm_thermal_zone_of_sensor_register{,_param}()
  thermal: Register hwmon in thermal_zone_of_sensor_register_param()
  thermal: stm32: Convert to
    devm_thermal_zone_of_sensor_register_params()
  thermal: rcar_thermal: Convert to
    devm_thermal_zone_of_sensor_register_params()
  thermal: rcar_gen3_thermal: Register hwmon sysfs interface

 drivers/thermal/of-thermal.c        | 104 +++++++++++++++++++++++++---
 drivers/thermal/rcar_gen3_thermal.c |   8 ++-
 drivers/thermal/rcar_thermal.c      |  33 ++++-----
 drivers/thermal/st/stm_thermal.c    |  20 ++----
 include/linux/thermal.h             |  25 +++++++
 5 files changed, 144 insertions(+), 46 deletions(-)

Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-renesas-soc@vger.kernel.org
To: linux-pm@vger.kernel.org

-- 
2.18.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2018-12-17 15:57 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12  1:49 [PATCH 0/6] thermal: Align devm_thermal_zone_{device,of_sensor}_register Marek Vasut
2018-12-12  1:49 ` [PATCH 1/6] thermal: split thermal_zone_of_sensor_register{,_param}() Marek Vasut
2018-12-15 17:23   ` Eduardo Valentin
2018-12-15 18:38     ` Marek Vasut
2018-12-15 18:47       ` Geert Uytterhoeven
2018-12-15 18:49         ` Marek Vasut
2018-12-15 18:54           ` Geert Uytterhoeven
2018-12-15 19:07             ` Marek Vasut
2018-12-15 20:00               ` Geert Uytterhoeven
2018-12-15 20:13                 ` Marek Vasut
2018-12-16  8:39                   ` Geert Uytterhoeven
2018-12-16 17:25                     ` Marek Vasut
2018-12-16 17:42                       ` Geert Uytterhoeven
2018-12-16 17:48                         ` Marek Vasut
2018-12-16 20:08                           ` Geert Uytterhoeven
2018-12-16 20:43                             ` Marek Vasut
2018-12-17 13:26                               ` Geert Uytterhoeven
2018-12-17 13:28                                 ` Marek Vasut
2018-12-17 13:36                                   ` Geert Uytterhoeven
2018-12-17 13:41                                     ` Marek Vasut
2018-12-17 14:15                                       ` Geert Uytterhoeven
2018-12-17 15:52                                         ` Marek Vasut
2018-12-12  1:49 ` [PATCH 2/6] thermal: split devm_thermal_zone_of_sensor_register{,_param}() Marek Vasut
2018-12-12  1:49 ` [PATCH 3/6] thermal: Register hwmon in thermal_zone_of_sensor_register_param() Marek Vasut
2018-12-12  1:49 ` [PATCH 4/6] thermal: stm32: Convert to devm_thermal_zone_of_sensor_register_params() Marek Vasut
2018-12-12  1:49 ` [PATCH 5/6] thermal: rcar_thermal: " Marek Vasut
2018-12-12  1:49 ` [PATCH 6/6] thermal: rcar_gen3_thermal: Register hwmon sysfs interface Marek Vasut
2018-12-14  5:28   ` kbuild test robot
2018-12-15  2:02 ` [PATCH 0/6] thermal: Align devm_thermal_zone_{device,of_sensor}_register Eduardo Valentin
2018-12-15  2:08   ` Marek Vasut
2018-12-15 17:23     ` Eduardo Valentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).