Ignore:
Timestamp:
Jan 3, 2021, 7:20:20 AM (5 years ago)
Author:
Paul Smedley
Message:

Code cleanups to simplify future maintenance, update regmap/regcache/rbtree to linux 4.19.163 level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/internal.h

    r615 r625  
    1010 * published by the Free Software Foundation.
    1111 */
    12 /* from 4.14.202 */
     12/* from 4.19.163 */
    1313
    1414#ifndef _REGMAP_INTERNAL_H
     
    8282
    8383#ifdef CONFIG_DEBUG_FS
     84        bool debugfs_disable;
    8485        struct dentry *debugfs;
    8586        const char *debugfs_name;
     
    9899        bool (*volatile_reg)(struct device *dev, unsigned int reg);
    99100        bool (*precious_reg)(struct device *dev, unsigned int reg);
     101        bool (*readable_noinc_reg)(struct device *dev, unsigned int reg);
    100102        const struct regmap_access_table *wr_table;
    101103        const struct regmap_access_table *rd_table;
    102104        const struct regmap_access_table *volatile_table;
    103105        const struct regmap_access_table *precious_table;
     106        const struct regmap_access_table *rd_noinc_table;
    104107
    105108        int (*reg_read)(void *context, unsigned int reg, unsigned int *val);
     
    162165        struct rb_root range_tree;
    163166        void *selector_work_buf;        /* Scratch buffer used for selector */
     167
     168        struct hwspinlock *hwlock;
    164169};
    165170
     
    183188bool regmap_volatile(struct regmap *map, unsigned int reg);
    184189bool regmap_precious(struct regmap *map, unsigned int reg);
     190bool regmap_readable_noinc(struct regmap *map, unsigned int reg);
    185191
    186192int _regmap_write(struct regmap *map, unsigned int reg,
     
    218224extern void regmap_debugfs_init(struct regmap *map, const char *name);
    219225extern void regmap_debugfs_exit(struct regmap *map);
     226
     227static inline void regmap_debugfs_disable(struct regmap *map)
     228{
     229        map->debugfs_disable = true;
     230}
     231
    220232#else
    221233static inline void regmap_debugfs_initcall(void) { }
    222234static inline void regmap_debugfs_init(struct regmap *map, const char *name) { }
    223235static inline void regmap_debugfs_exit(struct regmap *map) { }
     236static inline void regmap_debugfs_disable(struct regmap *map) { }
    224237#endif
    225238
Note: See TracChangeset for help on using the changeset viewer.