OSDN Git Service

thermal: core: Add function for registering tripless thermal zones
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Aug 2023 16:13:35 +0000 (18:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Sep 2023 19:42:18 +0000 (21:42 +0200)
commitd332db8fc1a2dfb4738281b1d6d4ed20115dd9d3
tree55619245012cf914a6311d806151ddd8076a9703
parent9ffa7b92bc768609243d79fb0c0125b9704c7061
thermal: core: Add function for registering tripless thermal zones

Multiple callers of thermal_zone_device_register() don't pass any trips
to it and they might use a shortened argument list for that, so add
a special function with fewer arguments for this purpose.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c
include/linux/thermal.h