opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call
authorKeerthy <j-keerthy@ti.com>
Wed, 7 Nov 2018 04:34:23 +0000 (10:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:27 +0000 (09:37 +0100)
commitb7d5ef6af8eb1da163bcec2723c6bec87e95faed
tree562b92876b3a9d27f764b1df9952b597b0be1fbc
parent50f4a3b8eb62a4ff8fbf23a6e8b9fde147ed0202
opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call

commit 622fecbccfe86a8052dea6b512d3821dcce29994 upstream.

_get_optimal_vdd_voltage call provides new_supply_vbb->u_volt
as the reference voltage while it should be really new_supply_vdd->u_volt.

Cc: 4.16+ <stable@vger.kernel.org> # v4.16+
Fixes: 9a835fa6e47 ("PM / OPP: Add ti-opp-supply driver")
Signed-off-by: Keerthy <j-keerthy@ti.com>
Acked-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/opp/ti-opp-supply.c