]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/base/regmap/internal.h
Merge remote-tracking branch 'regmap/topic/lock' into regmap-next
[karo-tx-linux.git] / drivers / base / regmap / internal.h
index b1ee824e2a5f12b533c23f0259ea3c6a587935be..0fadeba64ce011838534d0d049a0ddf4186330b5 100644 (file)
 
 #include <linux/regmap.h>
 #include <linux/fs.h>
+#include <linux/list.h>
 
 struct regmap;
 struct regcache_ops;
 
+struct regmap_debugfs_off_cache {
+       struct list_head list;
+       off_t min;
+       off_t max;
+       unsigned int base_reg;
+};
+
 struct regmap_format {
        size_t buf_size;
        size_t reg_bytes;
@@ -48,6 +56,12 @@ struct regmap {
 #ifdef CONFIG_DEBUG_FS
        struct dentry *debugfs;
        const char *debugfs_name;
+
+       unsigned int debugfs_reg_len;
+       unsigned int debugfs_val_len;
+       unsigned int debugfs_tot_len;
+
+       struct list_head debugfs_off_cache;
 #endif
 
        unsigned int max_register;
@@ -118,6 +132,8 @@ int _regmap_write(struct regmap *map, unsigned int reg,
 
 struct regmap_range_node {
        struct rb_node node;
+       const char *name;
+       struct regmap *map;
 
        unsigned int range_min;
        unsigned int range_max;