Merge remote-tracking branch 'regmap/topic/range' into regmap-next

This commit is contained in:
Mark Brown 2013-08-31 19:25:14 +01:00
commit db00cb9943
1 changed files with 4 additions and 0 deletions

View File

@ -687,6 +687,10 @@ struct regmap *regmap_init(struct device *dev,
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,