thermal: Constify the trip argument of the .get_trend() zone callback
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Sep 2023 18:18:56 +0000 (20:18 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Sep 2023 15:16:40 +0000 (17:16 +0200)
commitebc7abb35b258152d4a424f89d7c03db1d7ce61c
treee19cc7c501f9cacf7d0ebb68a6dd304948f11e4b
parent8a81cf96f5510aaf9a65d103f7405079a7b0fcc5
thermal: Constify the trip argument of the .get_trend() zone callback

Add 'const' to the definition of the 'trip' argument of the
.get_trend() thermal zone callback to indicate that the trip point
passed to it should not be modified by it and adjust the
callback functions implementing it, thermal_get_trend() in the
ACPI thermal driver and __ti_thermal_get_trend(), accordingly.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Michal Wilczynski <michal.wilczynski@intel.com>
drivers/acpi/thermal.c
drivers/thermal/ti-soc-thermal/ti-thermal-common.c
include/linux/thermal.h