thermal/drivers/thermal_of: Add change_mode ops support for thermal_of sensor
authorManaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Tue, 8 Mar 2022 19:26:26 +0000 (00:56 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 19 May 2022 10:11:51 +0000 (12:11 +0200)
commitbf70c577516b8d9fbe703371aa98bbea13661cec
tree51372a920e63901c828ba060bc1335e0530538c8
parent106e0121e243de4da7d634338089a68a8da2abe9
thermal/drivers/thermal_of: Add change_mode ops support for thermal_of sensor

The sensor driver which register through thermal_of interface doesn't
have an option to get thermal zone mode change notification from
thermal core.

Add support for change_mode ops in thermal_of interface so that sensor
driver can use this ops for mode change notification.

Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Link: https://lore.kernel.org/r/1646767586-31908-1-git-send-email-quic_manafm@quicinc.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_of.c
include/linux/thermal.h