thermal: helpers: Drop get_thermal_instance()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Aug 2024 11:56:04 +0000 (13:56 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Aug 2024 11:57:04 +0000 (13:57 +0200)
commit96d819908de094d7169915b993c9ecccf326049e
treef2de5cfd97672ae03f90c549c150b2ff1ded5952
parent5136f99b9a4a63dc81924a05d256ad5829cbefa6
thermal: helpers: Drop get_thermal_instance()

There are no more users of get_thermal_instance(), so drop it.

While at it, replace get_instance() returning a pointer to struct
thermal_instance with thermal_instance_present() returning a bool
which is more straightforward.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/2014591.usQuhbGJ8B@rjwysocki.net
[ rjw: Dropped get_thermal_instance() documentation ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/driver-api/thermal/sysfs-api.rst
drivers/thermal/thermal_core.h
drivers/thermal/thermal_helpers.c