diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-03 12:40:47 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-15 09:59:59 +0900 |
commit | d058bb49618482f2eff0db57618c9a7352916dd5 (patch) | |
tree | b7b4a88a8f3bcceb14856ba09ddfa5e81e8f8b39 /drivers | |
parent | 061adc064adbbdd9eb127ab2e86b7a71f4ccaf2e (diff) | |
download | blackbird-obmc-linux-d058bb49618482f2eff0db57618c9a7352916dd5.tar.gz blackbird-obmc-linux-d058bb49618482f2eff0db57618c9a7352916dd5.zip |
regmap: Allow ranges to be named
For more useful diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers')
-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, struct regmap_range_node { struct rb_node node; + const char *name; unsigned int range_min; 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, goto err_range; } + new->name = range_cfg->name; new->range_min = range_cfg->range_min; new->range_max = range_cfg->range_max; new->selector_reg = range_cfg->selector_reg; |