Changeset 625 for GPL/branches/uniaud32-next/lib32/internal.h
- Timestamp:
- Jan 3, 2021, 7:20:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/lib32/internal.h
r615 r625 10 10 * published by the Free Software Foundation. 11 11 */ 12 /* from 4.1 4.202*/12 /* from 4.19.163 */ 13 13 14 14 #ifndef _REGMAP_INTERNAL_H … … 82 82 83 83 #ifdef CONFIG_DEBUG_FS 84 bool debugfs_disable; 84 85 struct dentry *debugfs; 85 86 const char *debugfs_name; … … 98 99 bool (*volatile_reg)(struct device *dev, unsigned int reg); 99 100 bool (*precious_reg)(struct device *dev, unsigned int reg); 101 bool (*readable_noinc_reg)(struct device *dev, unsigned int reg); 100 102 const struct regmap_access_table *wr_table; 101 103 const struct regmap_access_table *rd_table; 102 104 const struct regmap_access_table *volatile_table; 103 105 const struct regmap_access_table *precious_table; 106 const struct regmap_access_table *rd_noinc_table; 104 107 105 108 int (*reg_read)(void *context, unsigned int reg, unsigned int *val); … … 162 165 struct rb_root range_tree; 163 166 void *selector_work_buf; /* Scratch buffer used for selector */ 167 168 struct hwspinlock *hwlock; 164 169 }; 165 170 … … 183 188 bool regmap_volatile(struct regmap *map, unsigned int reg); 184 189 bool regmap_precious(struct regmap *map, unsigned int reg); 190 bool regmap_readable_noinc(struct regmap *map, unsigned int reg); 185 191 186 192 int _regmap_write(struct regmap *map, unsigned int reg, … … 218 224 extern void regmap_debugfs_init(struct regmap *map, const char *name); 219 225 extern void regmap_debugfs_exit(struct regmap *map); 226 227 static inline void regmap_debugfs_disable(struct regmap *map) 228 { 229 map->debugfs_disable = true; 230 } 231 220 232 #else 221 233 static inline void regmap_debugfs_initcall(void) { } 222 234 static inline void regmap_debugfs_init(struct regmap *map, const char *name) { } 223 235 static inline void regmap_debugfs_exit(struct regmap *map) { } 236 static inline void regmap_debugfs_disable(struct regmap *map) { } 224 237 #endif 225 238
Note:
See TracChangeset
for help on using the changeset viewer.