pass: parser: Add get_property_set to simplify getting properties 55/280755/5
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 Aug 2022 14:28:33 +0000 (23:28 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 7 Sep 2022 03:13:08 +0000 (03:13 +0000)
commit782dd36d42a7c1eb47428e6908235d9447a39962
tree191e30b38ff26bf6990b6abe205755f051d6f45d
parent873f5cb6eb8c6c0e3c154918fe936f940b245980
pass: parser: Add get_property_set to simplify getting properties

And get_property_set function to reduce the get_property function call.
It makes the getting propertis more simpler than before

Also, get the property value from json configuration file
and then stored them to local variables. And fill out the allocated
memory of structure with local variables. But, local variables
are not necessary. In order to reduce the LOC (line of code),
get property value directly without local variables.

Change-Id: Ib993d11d6ad22d3fd12fca54a591ae30cd3b9b20
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/util/common.h
src/pass/pass-parser.c
src/pmqos/pmqos-parser.c
src/thermal/thermal-parser.c
src/util/common.c