qti-regmap-debugfs.h 980 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _LINUX_QTI_REGMAP_DEBUGFS_H_
  6. #define _LINUX_QTI_REGMAP_DEBUGFS_H_
  7. #include <linux/device.h>
  8. #include <linux/regmap.h>
  9. #if IS_ENABLED(CONFIG_REGMAP_QTI_DEBUGFS)
  10. int regmap_qti_debugfs_register(struct device *dev, struct regmap *regmap);
  11. void regmap_qti_debugfs_unregister(struct regmap *regmap);
  12. int devm_regmap_qti_debugfs_register(struct device *dev, struct regmap *regmap);
  13. void devm_regmap_qti_debugfs_unregister(struct regmap *regmap);
  14. #else
  15. static inline int regmap_qti_debugfs_register(struct device *dev,
  16. struct regmap *regmap)
  17. { return 0; }
  18. static inline void regmap_qti_debugfs_unregister(struct regmap *regmap)
  19. { }
  20. static inline int devm_regmap_qti_debugfs_register(struct device *dev,
  21. struct regmap *regmap)
  22. { return 0; }
  23. static inline void devm_regmap_qti_debugfs_unregister(struct regmap *regmap)
  24. { }
  25. #endif
  26. #endif