staging: ti-soc-thermal: report alert events on OMAP5 devices
authorEduardo Valentin <eduardo.valentin@ti.com>
Mon, 1 Apr 2013 16:04:37 +0000 (12:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2013 19:27:29 +0000 (12:27 -0700)
OMAP5430 devices have the capability to generate
alert temperature. Thus, whenever a T_ALERT IRQ is served,
the ti-bandgap will call .report_temperature to notify the
thermal framework about thermal zone update request.

This patch allows OMAP5430 devices to notify
the thermal framework about T_ALERT events.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ti-soc-thermal/omap5-thermal-data.c

index 0afe9c807decb033b06593487a6790ac0b18cdfd..aa16f92e19c06992aa0c919742df3a4002c9ae49 100644 (file)
@@ -323,6 +323,7 @@ const struct ti_bandgap_data omap5430_data = {
        .adc_end_val = OMAP5430_ADC_END_VALUE,
        .expose_sensor = ti_thermal_expose_sensor,
        .remove_sensor = ti_thermal_remove_sensor,
+       .report_temperature = ti_thermal_report_sensor_temperature,
        .sensors = {
                {
                .registers = &omap5430_mpu_temp_sensor_registers,