pinconf.h 743 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Internal interface between the core pin control system and the
  3. * pin config portions
  4. *
  5. * Copyright (C) 2011 ST-Ericsson SA
  6. * Written on behalf of Linaro for ST-Ericsson
  7. * Based on bits of regulator core, gpio core and clk core
  8. *
  9. * Author: Linus Walleij <linus.walleij@linaro.org>
  10. *
  11. * License terms: GNU General Public License (GPL) version 2
  12. */
  13. #ifdef CONFIG_PINCONF
  14. int pinconf_check_ops(struct pinctrl_dev *pctldev);
  15. void pinconf_init_device_debugfs(struct dentry *devroot,
  16. struct pinctrl_dev *pctldev);
  17. #else
  18. static inline int pinconf_check_ops(struct pinctrl_dev *pctldev)
  19. {
  20. return 0;
  21. }
  22. static inline void pinconf_init_device_debugfs(struct dentry *devroot,
  23. struct pinctrl_dev *pctldev)
  24. {
  25. }
  26. #endif