lkml.org 
[lkml]   [2013]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] regulator: core: Ensure selector is mapped
From: Mark Brown <broonie@linaro.org>

Clearly the testing only covered the bottom range.

Signed-off-by: Mark Brown <broonie@linaro.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


\
 
 \ /
  Last update: 2013-07-18 18:01    [W:0.074 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site