thermal: broadcom: Use thermal_zone_get_crit_temp() in bcm2835_thermal_probe()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jul 2024 15:53:59 +0000 (17:53 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Aug 2024 11:32:09 +0000 (13:32 +0200)
commit5df9809c424fb889eb4ad44f856196d86aa389f7
treeba888462a046457435e20c66af5dfae667f9b7f4
parenta09074228977c24c677c10282f506fa11f88eb93
thermal: broadcom: Use thermal_zone_get_crit_temp() in bcm2835_thermal_probe()

Modify the bcm2835 thermal driver to use thermal_zone_get_crit_temp() in
bcm2835_thermal_probe() instead of relying on the assumption that the
critical trip index will always be 0.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/3322893.aeNJFYEL58@rjwysocki.net
drivers/thermal/broadcom/bcm2835_thermal.c