From b55313af04d42f90a805f9340d07d4888d20551b Mon Sep 17 00:00:00 2001 From: Hyeonseong Gil Date: Mon, 28 Mar 2016 16:04:09 +0900 Subject: [PATCH] [COMMON] thermal: of-thermal: parse power allocator param from dt Change-Id: If2870d343f51db146fa5498c875e064510b5c8d6 Signed-off-by: Hyeonseong Gil --- drivers/thermal/of-thermal.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index b5108cf614a9..548b325e7c48 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -1023,6 +1023,15 @@ int __init of_parse_thermal_zones(void) if (!of_property_read_u32(child, "sustainable-power", &prop)) tzp->sustainable_power = prop; + if (!of_property_read_u32(child, "k_po", &prop)) + tzp->k_po = prop; + + if (!of_property_read_u32(child, "k_pu", &prop)) + tzp->k_pu = prop; + + if (!of_property_read_u32(child, "k_i", &prop)) + tzp->k_i = prop; + for (i = 0; i < tz->ntrips; i++) mask |= 1 << i; -- 2.20.1