mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
c480ab75e3
commit
5031c00a34
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user