|
@@ -77,6 +77,7 @@ struct regmap {
|
|
int async_ret;
|
|
int async_ret;
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
|
+ bool debugfs_disable;
|
|
struct dentry *debugfs;
|
|
struct dentry *debugfs;
|
|
const char *debugfs_name;
|
|
const char *debugfs_name;
|
|
|
|
|
|
@@ -215,10 +216,17 @@ struct regmap_field {
|
|
extern void regmap_debugfs_initcall(void);
|
|
extern void regmap_debugfs_initcall(void);
|
|
extern void regmap_debugfs_init(struct regmap *map, const char *name);
|
|
extern void regmap_debugfs_init(struct regmap *map, const char *name);
|
|
extern void regmap_debugfs_exit(struct regmap *map);
|
|
extern void regmap_debugfs_exit(struct regmap *map);
|
|
|
|
+
|
|
|
|
+static inline void regmap_debugfs_disable(struct regmap *map)
|
|
|
|
+{
|
|
|
|
+ map->debugfs_disable = true;
|
|
|
|
+}
|
|
|
|
+
|
|
#else
|
|
#else
|
|
static inline void regmap_debugfs_initcall(void) { }
|
|
static inline void regmap_debugfs_initcall(void) { }
|
|
static inline void regmap_debugfs_init(struct regmap *map, const char *name) { }
|
|
static inline void regmap_debugfs_init(struct regmap *map, const char *name) { }
|
|
static inline void regmap_debugfs_exit(struct regmap *map) { }
|
|
static inline void regmap_debugfs_exit(struct regmap *map) { }
|
|
|
|
+static inline void regmap_debugfs_disable(struct regmap *map) { }
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* regcache core declarations */
|
|
/* regcache core declarations */
|