summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-03 11:40:47 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-15 00:59:59 (GMT)
commitd058bb49618482f2eff0db57618c9a7352916dd5 (patch)
treeb7b4a88a8f3bcceb14856ba09ddfa5e81e8f8b39 /include
parent061adc064adbbdd9eb127ab2e86b7a71f4ccaf2e (diff)
downloadlinux-fsl-qoriq-d058bb49618482f2eff0db57618c9a7352916dd5.tar.xz
regmap: Allow ranges to be named
For more useful diagnostics. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/regmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index afc8e1a..9f228d7 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -142,6 +142,8 @@ struct regmap_config {
* 1. page selector register update;
* 2. access through data window registers.
*
+ * @name: Descriptive name for diagnostics
+ *
* @range_min: Address of the lowest register address in virtual range.
* @range_max: Address of the highest register in virtual range.
*
@@ -153,6 +155,8 @@ struct regmap_config {
* @window_len: Number of registers in data window.
*/
struct regmap_range_cfg {
+ const char *name;
+
/* Registers of virtual address range */
unsigned int range_min;
unsigned int range_max;