dell-wmi-privacy.h 799 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Dell privacy notification driver
  4. *
  5. * Copyright (C) 2021 Dell Inc. All Rights Reserved.
  6. */
  7. #ifndef _DELL_PRIVACY_WMI_H_
  8. #define _DELL_PRIVACY_WMI_H_
  9. #if IS_ENABLED(CONFIG_DELL_WMI_PRIVACY)
  10. bool dell_privacy_has_mic_mute(void);
  11. bool dell_privacy_process_event(int type, int code, int status);
  12. int dell_privacy_register_driver(void);
  13. void dell_privacy_unregister_driver(void);
  14. #else /* CONFIG_DELL_PRIVACY */
  15. static inline bool dell_privacy_has_mic_mute(void)
  16. {
  17. return false;
  18. }
  19. static inline bool dell_privacy_process_event(int type, int code, int status)
  20. {
  21. return false;
  22. }
  23. static inline int dell_privacy_register_driver(void)
  24. {
  25. return 0;
  26. }
  27. static inline void dell_privacy_unregister_driver(void)
  28. {
  29. }
  30. #endif /* CONFIG_DELL_PRIVACY */
  31. #endif