msm-cdc-pinctrl.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __MFD_CDC_PINCTRL_H_
  13. #define __MFD_CDC_PINCTRL_H_
  14. #include <linux/types.h>
  15. #include <linux/of.h>
  16. #if IS_ENABLED(CONFIG_MSM_CDC_PINCTRL)
  17. extern int msm_cdc_pinctrl_select_sleep_state(struct device_node *np);
  18. extern int msm_cdc_pinctrl_select_active_state(struct device_node *np);
  19. extern bool msm_cdc_pinctrl_get_state(struct device_node *np);
  20. extern int msm_cdc_get_gpio_state(struct device_node *np);
  21. int msm_cdc_pinctrl_drv_init(void);
  22. void msm_cdc_pinctrl_drv_exit(void);
  23. #else
  24. int msm_cdc_pinctrl_select_sleep_state(struct device_node *np)
  25. {
  26. return 0;
  27. }
  28. int msm_cdc_pinctrl_select_active_state(struct device_node *np)
  29. {
  30. return 0;
  31. }
  32. int msm_cdc_get_gpio_state(struct device_node *np)
  33. {
  34. return 0;
  35. }
  36. int msm_cdc_pinctrl_drv_init(void)
  37. {
  38. return 0;
  39. }
  40. void msm_cdc_pinctrl_drv_exit(void)
  41. {
  42. }
  43. #endif
  44. #endif