[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1374160476-17004-1-git-send-email-broonie@kernel.org>
Date: Thu, 18 Jul 2013 16:14:36 +0100
From: Mark Brown <broonie@...nel.org>
To: Liam Girdwood <lgirdwood@...il.com>
Cc: linux-kernel@...r.kernel.org, linaro-kernel@...ts.linaro.org,
Mark Brown <broonie@...aro.org>
Subject: [PATCH] regulator: core: Ensure selector is mapped
From: Mark Brown <broonie@...aro.org>
Clearly the testing only covered the bottom range.
Signed-off-by: Mark Brown <broonie@...aro.org>
---
drivers/regulator/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index fd3f6e0..42ae134 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;
}
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists