]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: trip: Get rid of thermal_zone_get_num_trips()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jul 2024 16:11:29 +0000 (18:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Aug 2024 11:59:50 +0000 (13:59 +0200)
commit79f194dd54cef3a0212914cd79dda1f91b7bf7f6
treee52de3bded2307c82dde0475c22907ba922039b6
parent96d819908de094d7169915b993c9ecccf326049e
thermal: trip: Get rid of thermal_zone_get_num_trips()

The only existing caller of thermal_zone_get_num_trips(), which is
rcar_gen3_thermal_probe(), uses this function to put the number of
trip points into a kernel log message, but this information is also
available from the thermal sysfs interface.

For this reason, remove the thermal_zone_get_num_trips() call from
rcar_gen3_thermal_probe() and drop the former altogether.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/2636988.Lt9SDvczpP@rjwysocki.net
drivers/thermal/renesas/rcar_gen3_thermal.c
drivers/thermal/thermal_trip.c
include/linux/thermal.h