]> 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)
commitea685e3bb623734696af25cb51b05e7734ea47a8
tree72605d393aca96108ab172857b4ea2555d4ada13
parentddcdd29fae23f2d5873e4da89ee310dd616e0d65
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