From: Hyeonseong Gil Date: Mon, 11 Jul 2016 07:27:30 +0000 (+0900) Subject: [COMMON] thermal: of-thermal: parse integral_cutoff from dt X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96641528d2c26288f56f9db10dd67c1abaf51f0c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: of-thermal: parse integral_cutoff from dt Change-Id: I34fae59be8f682ccf66bd2f077a24c9b0f1ae0c0 Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 11617dc4e769..7ba2769757f9 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -1035,6 +1035,9 @@ int __init of_parse_thermal_zones(void) if (!of_property_read_u32(child, "i_max", &prop)) tzp->integral_max = prop; + if (!of_property_read_u32(child, "integral_cutoff", &prop)) + tzp->integral_cutoff = prop; + for (i = 0; i < tz->ntrips; i++) mask |= 1 << i;