summaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-03 12:40:47 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-15 09:59:59 +0900
commitd058bb49618482f2eff0db57618c9a7352916dd5 (patch)
treeb7b4a88a8f3bcceb14856ba09ddfa5e81e8f8b39 /include/linux/regmap.h
parent061adc064adbbdd9eb127ab2e86b7a71f4ccaf2e (diff)
downloadop-kernel-dev-d058bb49618482f2eff0db57618c9a7352916dd5.zip
op-kernel-dev-d058bb49618482f2eff0db57618c9a7352916dd5.tar.gz
regmap: Allow ranges to be named
For more useful diagnostics. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regmap.h')
-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;
OpenPOWER on IntegriCloud