Skip to contentSkip to conversation

regmap: debugfs: Add a registers `range' file

PATCH New Dimitris Papastamos 1 participant 1 message Feb 11, 2013

Subsystems (2)

v2 of 3 New Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 regmap: debugfs: Add a registers `range' file

This file lists the register ranges in the register map. The condition to split the range is based on the actual register attributes. A range is a contiguous block of registers with the same register attributes.

---
 drivers/base/regmap/internal.h       |   1 +
 drivers/base/regmap/regmap-debugfs.c | 116 +++++++++++++++++++++++++++++++++++
 2 files changed, 117 insertions(+)
drivers/base/regmap/internal.h +1 -0
index 5a22bd3..b4e55a0 100644
@@ -27,6 +27,7 @@ struct regmap_debugfs_off_cache {
 	off_t max;
 	unsigned int base_reg;
 	unsigned int max_reg;
+	unsigned int reg_attr;
 };
 
 struct regmap_format {
drivers/base/regmap/regmap-debugfs.c +116 -0

146 lines not on this page · raw message

Signature · 1 line
1.8.1.3