summaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown2012-10-03 13:40:47 +0200
committerMark Brown2012-10-15 02:59:59 +0200
commitd058bb49618482f2eff0db57618c9a7352916dd5 (patch)
treeb7b4a88a8f3bcceb14856ba09ddfa5e81e8f8b39 /include/linux/regmap.h
parentregmap: When we sanity check during range adds say what errors we find (diff)
downloadkernel-qcow2-linux-d058bb49618482f2eff0db57618c9a7352916dd5.tar.gz
kernel-qcow2-linux-d058bb49618482f2eff0db57618c9a7352916dd5.tar.xz
kernel-qcow2-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 '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 afc8e1a2cd1b..9f228d7f7ac4 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;