pass: thermal: Fix to handle priority of initial state properly 67/263167/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 27 Aug 2021 05:49:49 +0000 (14:49 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 27 Aug 2021 06:18:11 +0000 (15:18 +0900)
commit1f64ee46b2c4721a529236d5dfa0e3983223bddf
tree0815c0b4eb265c58fade4eeda70b55a3a35d6e59
parentd3616e261249caa6544d36d6cdd0a7678450a04a
pass: thermal: Fix to handle priority of initial state properly

At first, priority is intended to treat lower value as higher
priority, but it is not handled intentionally when monitoring devices.
So this fixes to handle it properly and to this end it is required to
retrieve highest priority from the corresponding thermal device.
Finally, instead of plain scenario string the notifer_data structure
is passed as THERMAL_GET_SCENARIO parameter to get both scenario and
priority.

Change-Id: I330729be2890cdcb89ee7a677af2c0b8d4905fb0
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/pass/pass-thermal.c
src/thermal/thermal.c