OPP: Simplify opp_parse_supplies() by restructuring it
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 2 Nov 2022 11:17:08 +0000 (16:47 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 4 Nov 2022 05:29:05 +0000 (10:59 +0530)
commite5acb1991b5884d86f113d7841024234c465c501
tree1de4a43938e6ecc88a1c9915c6e3fe0e3cf2c2c1
parent71b09429e82e5cd402bedc763c25b5962fdc9d71
OPP: Simplify opp_parse_supplies() by restructuring it

opp_parse_supplies() has grown into too big of a routine (~190 lines)
and it is not straight-forward to understand it anymore.

Break it into smaller routines and reduce code redundancy a bit by using
the same code to parse properties.

This shouldn't result in any logical changes.

Tested-by: James Calligeros <jcalligeros99@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c