thermal/core: Remove thermal_zone_set_trips()
authorGuenter Roeck <linux@roeck-us.net>
Thu, 10 Nov 2022 15:24:59 +0000 (07:24 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Nov 2022 18:04:37 +0000 (19:04 +0100)
commit91b3aafc2238a91051dff79a8d072a18c805ee50
tree48974c39dff32047da638dc93ea371b2128a9c2a
parent05eeee2b51b44c7ba5f1b8e5c41362020513f163
thermal/core: Remove thermal_zone_set_trips()

Since no callers of thermal_zone_set_trips() are left, remove the function.
Document __thermal_zone_set_trips() instead. Explicitly state that the
thermal zone lock must be held when calling the function, and that the
pointer to the thermal zone must be valid.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.h
drivers/thermal/thermal_helpers.c