[COMMON] thermal: of-thermal: parse integral_cutoff from dt
authorHyeonseong Gil <hs.gil@samsung.com>
Mon, 11 Jul 2016 07:27:30 +0000 (16:27 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:02 +0000 (17:13 +0900)
Change-Id: I34fae59be8f682ccf66bd2f077a24c9b0f1ae0c0
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/of-thermal.c

index 11617dc4e7692a34e3040591f63d65d24475b8c0..7ba2769757f9ae3d3f9815ba211d234896516fcf 100644 (file)
@@ -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;