From: Eduardo Valentin Date: Mon, 1 Apr 2013 16:04:35 +0000 (-0400) Subject: staging: ti-soc-thermal: expose ti_thermal_report_temperature X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8c99c166bd5ba8c66488e3035572804a7d2ff533;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ti-soc-thermal/ti-thermal.h b/drivers/staging/ti-soc-thermal/ti-thermal.h index ef6981c9436a..7b2d600f1352 100644 --- a/drivers/staging/ti-soc-thermal/ti-thermal.h +++ b/drivers/staging/ti-soc-thermal/ti-thermal.h @@ -76,6 +76,7 @@ #ifdef CONFIG_TI_THERMAL 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_report_sensor_temperature(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); #else @@ -91,6 +92,12 @@ int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id) return 0; } +static inline +int ti_thermal_report_sensor_temperature(struct ti_bandgap *bgp, int id) +{ + return 0; +} + static inline int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) {