Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01409b00 authored by David Collins's avatar David Collins
Browse files

thermal: qcom-spmi-temp-alarm: use of_thermal_handle_trip()



Change the function called during an over-temperature stage
transition from thermal_zone_device_update() to
of_thermal_handle_trip().  This ensures that all thermal zones
using a sensor are updated in the case that more than one thermal
zone is associated with a given SPMI temperature alarm sensor.

Change-Id: Ia663aa3f9b78c010214e9e30d32dab5d304cdf3c
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 0b6fa76b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/thermal.h>
#include "thermal_core.h"

#define QPNP_TM_REG_TYPE		0x04
#define QPNP_TM_REG_SUBTYPE		0x05
@@ -188,7 +189,7 @@ static irqreturn_t qpnp_tm_isr(int irq, void *data)
{
	struct qpnp_tm_chip *chip = data;

	thermal_zone_device_update(chip->tz_dev, THERMAL_EVENT_UNSPECIFIED);
	of_thermal_handle_trip(chip->tz_dev);

	return IRQ_HANDLED;
}