• Viresh Kumar's avatar
    of: thermal: Allow multiple devices to share cooling map · a92bab89
    Viresh Kumar authored
    A cooling map entry may now contain a list of phandles and their
    arguments representing multiple devices which share the trip point.
    
    This patch updates the thermal OF core to parse them properly. The trip
    point and contribution value is shared by multiple cooling devices now
    and so a new structure is created, struct __thermal_cooling_bind_param,
    which represents a cooling device and its min/max states and the
    existing struct __thermal_bind_params now contains an array of this new
    cooling device structure.
    
    Tested on Hikey960.
    Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    a92bab89
of-thermal.c 27.6 KB