From: Mark Brown Date: Thu, 18 Jul 2013 15:06:33 +0000 (+0100) Subject: regulator: core: Ensure selector is mapped X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6c918d220925eeeca75b67e896eabffd061cd128;p=deliverable%2Flinux.git regulator: core: Ensure selector is mapped Clearly the testing only covered the bottom range. Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index fd3f6e003729..42ae134797e0 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -2446,6 +2446,8 @@ int regulator_map_voltage_linear_range(struct regulator_dev *rdev, return ret; } + ret += range->min_sel; + break; }