clk/tegra/clk-tegra124-dfll-fcpu: Add check to 'regulator_list_voltage'
Subsystems (3)
PATCH 1/1 clk/tegra/clk-tegra124-dfll-fcpu: Add check to 'regulator_list_voltage'
Signed-off-by Alfredo Cruz <[email protected]>
---
Hi,
I'm not entirely sure if 'regulator_list_voltage(reg, 0)' will never return less than 0.
drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/clk/tegra/clk-tegra124-dfll-fcpu.c +2 -0
@@ -543,6 +543,8 @@ static int get_alignment_from_regulator(struct device *dev,return PTR_ERR (reg); align->offset_uv =regulator_list_voltage (reg,0 ); +if (align->offset_uv <0 ) + align->offset_uv =0 ; align->step_uv =regulator_get_linear_step (reg);regulator_put (reg);
Signature · 1 line
2.39.2
Stephen Boyd
maintainerQuoting Alfredo Cruz (2023-03-14 06:17:18)
Quoted 1 line
Signed-off-by Alfredo Cruz <[email protected]>
Sorry, we can't apply this. It needs commit text. Please see Documentation/process/submitting-patches.rst
Quoted 3 lines
---
Hi,
I'm not entirely sure if 'regulator_list_voltage(reg, 0)' will never return less than 0.
Please find out.