opp: Add sanity checks in _read_opp_key()
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 12 May 2020 12:53:22 +0000 (15:53 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 29 May 2020 04:45:08 +0000 (10:15 +0530)
commit120e117bdc8483773fdae19dd326ef460b1ab4c2
tree72605d393aca96108ab172857b4ea2555d4ada13
parent6d3f922c46f2e91f63c92f8dd28381f097082912
opp: Add sanity checks in _read_opp_key()

When we read the OPP keys, it would be nice to do some sanity checks
of the values we get from DT and see if they match with the information
that is populated in the OPP table. Let's pass a pointer of the table,
so that we can do some validation.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
[ Viresh: Fix rebase conflicts ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c