From: Mark Brown Date: Thu, 18 Jul 2013 15:06:33 +0000 (+0100) Subject: regulator: core: Ensure selector is mapped X-Git-Tag: firefly_0821_release~176^2~5479^2~10^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6c918d220925eeeca75b67e896eabffd061cd128;p=firefly-linux-kernel-4.4.55.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; }