Skip to content

Commit bbcf61c

Browse files
larsclausenbroonie
authored andcommitted
regmap: Make debugfs stubs static inline
Make the debugfs stubs static inline to avoid future compilation issues due to duplicated symbols when CONFIG_DEBUG_FS=n once internal.h is included by multiple source files. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 6f30644 commit bbcf61c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/base/regmap/internal.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ extern void regmap_debugfs_initcall(void);
6161
extern void regmap_debugfs_init(struct regmap *map);
6262
extern void regmap_debugfs_exit(struct regmap *map);
6363
#else
64-
void regmap_debugfs_initcall(void) { }
65-
void regmap_debugfs_init(struct regmap *map) { }
66-
void regmap_debugfs_exit(struct regmap *map) { }
64+
static inline void regmap_debugfs_initcall(void) { }
65+
static inline void regmap_debugfs_init(struct regmap *map) { }
66+
static inline void regmap_debugfs_exit(struct regmap *map) { }
6767
#endif
6868

6969
#endif

0 commit comments

Comments
 (0)