mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 05:44:31 +08:00
staging: ti-soc-thermal: expose ti_thermal_report_temperature
Whenever a sensor has an alert to be reported to the thermal framework, it can use the report ti_thermal_report_temperature helper. This patch expose this function so that bandgap data config declarations could use it. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
169e8d03f0
commit
8c99c166bd
@ -76,6 +76,7 @@
|
|||||||
#ifdef CONFIG_TI_THERMAL
|
#ifdef CONFIG_TI_THERMAL
|
||||||
int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
|
int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain);
|
||||||
int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
|
int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id);
|
||||||
|
int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id);
|
||||||
int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
|
int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id);
|
||||||
int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
|
int ti_thermal_unregister_cpu_cooling(struct ti_bandgap *bgp, int id);
|
||||||
#else
|
#else
|
||||||
@ -91,6 +92,12 @@ int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline
|
||||||
|
int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id)
|
int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user