OPP: Add helpers for reading the binding properties
authorSaravana Kannan <saravanak@google.com>
Tue, 12 May 2020 12:53:19 +0000 (15:53 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 13 May 2020 06:18:13 +0000 (11:48 +0530)
commit6c591eec67cbb4db988ab35b944f5cf9013c0714
tree39439a80af14ff00a2e4936275b63929a1fcb062
parent45a41875fa20836f2839d4dda1f37d119a275542
OPP: Add helpers for reading the binding properties

The opp-hz DT property is not mandatory and we may use another property
as a key in the OPP table. Add helper functions to simplify the reading
and comparing the keys.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
[ Viresh: Removed an unnecessary comment ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/of.c
drivers/opp/opp.h