clk: qcom: Update corner voltage api for multiple vdd class

Return correct corner voltage for qcom_clk_get_voltage api for
a clock which supports multiple vdd class.

Change-Id: Ic2faa12ae85730aa1025ed342effa3052adc1062
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
This commit is contained in:
Vivek Aknurwar 2021-02-21 21:07:11 -08:00 committed by Mike Tipton
parent c480ab75e3
commit 5031c00a34

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2013-2014, 2017-2020, The Linux Foundation.
* Copyright (c) 2013-2014, 2017-2021, The Linux Foundation.
* All rights reserved.
*/
@ -440,7 +440,7 @@ int qcom_clk_get_voltage(struct clk *clk, unsigned long rate)
if (vdd_level < 0)
return vdd_level;
return rclk->vdd_data.vdd_class->vdd_uv[vdd_level];
return clk_get_vdd_voltage(&rclk->vdd_data, vdd_level);
}
EXPORT_SYMBOL(qcom_clk_get_voltage);