Skip to contentSkip to conversation

regulator: core: Ensure selector is mapped

PATCH New Mark Brown 1 participant 1 message Jul 18, 2013 Voltage and current regulator framework

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 regulator: core: Ensure selector is mapped

From: Mark Brown <[email protected]>

Clearly the testing only covered the bottom range.

---
 drivers/regulator/core.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/regulator/core.c +2 -0
index fd3f6e0..42ae134 100644
@@ -2446,6 +2446,8 @@ int regulator_map_voltage_linear_range(struct regulator_dev *rdev,
 				return ret;
 		}
 
+		ret += range->min_sel;
+
 		break;
 	}
 
Signature · 1 line
1.8.3.2