]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit43c9dcfea219d79e784dfb5b3a29687828ef66c6
tree72605d393aca96108ab172857b4ea2555d4ada13
parent56cf539112eb119fbeb60916b66901deb717c81c
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