muic_param.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. *
  3. * Copyright (C) 2021 Samsung Electronics
  4. *
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program.If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. #ifndef __LINUX_MUIC_PARAM_H__
  21. #define __LINUX_MUIC_PARAM_H__
  22. #if IS_ENABLED(CONFIG_MUIC_NOTIFIER)
  23. extern int get_switch_sel(void);
  24. extern int get_uart_sel(void);
  25. extern int get_afc_mode(void);
  26. extern int get_pdic_info(void);
  27. #else
  28. static inline int get_switch_sel(void) {return 0; }
  29. static inline int get_uart_sel(void) {return 0; }
  30. static inline int get_afc_mode(void) {return 0; }
  31. static inline int get_pdic_info(void) {return 1; }
  32. #endif
  33. #endif /* __LINUX_MUIC_PARAM_H__ */