“466e5fb4a0d0cef6a0e6ec5c64175b97bdaa3e8e”上不存在“about/code-of-conduct/index.html”
提交 8386a00f 编写于 作者: A Axel Lin 提交者: Mark Brown

regulator: tps6524x: Fix get_voltage_sel for fixed voltage

get_voltage_sel() should return selector rather than voltage.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 6b57c015
...@@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev) ...@@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev)
info = &supply_info[rdev_get_id(rdev)]; info = &supply_info[rdev_get_id(rdev)];
if (info->flags & FIXED_VOLTAGE) if (info->flags & FIXED_VOLTAGE)
return info->fixed_voltage; return 0;
ret = read_field(hw, &info->voltage); ret = read_field(hw, &info->voltage);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册