diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-03 07:40:47 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-14 20:59:59 -0400 |
commit | d058bb49618482f2eff0db57618c9a7352916dd5 (patch) | |
tree | b7b4a88a8f3bcceb14856ba09ddfa5e81e8f8b39 /drivers/base/regmap | |
parent | 061adc064adbbdd9eb127ab2e86b7a71f4ccaf2e (diff) |
regmap: Allow ranges to be named
For more useful diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/internal.h | 1 | ||||
-rw-r--r-- | drivers/base/regmap/regmap.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 80f9ab9c3aa4..27e66c3e7a59 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
@@ -120,6 +120,7 @@ int _regmap_write(struct regmap *map, unsigned int reg, | |||
120 | 120 | ||
121 | struct regmap_range_node { | 121 | struct regmap_range_node { |
122 | struct rb_node node; | 122 | struct rb_node node; |
123 | const char *name; | ||
123 | 124 | ||
124 | unsigned int range_min; | 125 | unsigned int range_min; |
125 | unsigned int range_max; | 126 | unsigned int range_max; |
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 0544f63ecd31..ce5129df4406 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c | |||
@@ -579,6 +579,7 @@ struct regmap *regmap_init(struct device *dev, | |||
579 | goto err_range; | 579 | goto err_range; |
580 | } | 580 | } |
581 | 581 | ||
582 | new->name = range_cfg->name; | ||
582 | new->range_min = range_cfg->range_min; | 583 | new->range_min = range_cfg->range_min; |
583 | new->range_max = range_cfg->range_max; | 584 | new->range_max = range_cfg->range_max; |
584 | new->selector_reg = range_cfg->selector_reg; | 585 | new->selector_reg = range_cfg->selector_reg; |