Commit db00cb99 authored by Mark Brown's avatar Mark Brown

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

parents 3dedb61e f161d220
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment