diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-31 18:25:14 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-31 18:25:14 (GMT) |
commit | db00cb99438f33dad9a27b7a5527230d4fdcc138 (patch) | |
tree | aca313f950c07e0745098bd4c779089018447e4f /drivers/base/regmap | |
parent | 3dedb61ec7a62ba669d07c604ebfa28598b569f2 (diff) | |
parent | f161d22081e9b81f0b35411c428af347ca3dd449 (diff) | |
download | linux-db00cb99438f33dad9a27b7a5527230d4fdcc138.tar.xz |
Merge remote-tracking branch 'regmap/topic/range' into regmap-next
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index ff58f38..aaf4e13 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -687,6 +687,10 @@ skip_format_initialization: unsigned win_max = win_min + config->ranges[j].window_len - 1; + /* Allow data window inside its own virtual range */ + if (j == i) + continue; + if (range_cfg->range_min <= sel_reg && sel_reg <= range_cfg->range_max) { dev_err(map->dev, |