xref: /linux/drivers/platform/x86/dell/dell-wmi-privacy.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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 
8 #ifndef _DELL_PRIVACY_WMI_H_
9 #define _DELL_PRIVACY_WMI_H_
10 
11 #if IS_ENABLED(CONFIG_DELL_WMI_PRIVACY)
12 bool dell_privacy_has_mic_mute(void);
13 bool dell_privacy_process_event(int type, int code, int status);
14 int dell_privacy_register_driver(void);
15 void dell_privacy_unregister_driver(void);
16 #else /* CONFIG_DELL_PRIVACY */
17 static inline bool dell_privacy_has_mic_mute(void)
18 {
19 	return false;
20 }
21 
22 static inline bool dell_privacy_process_event(int type, int code, int status)
23 {
24 	return false;
25 }
26 
27 static inline int dell_privacy_register_driver(void)
28 {
29 	return 0;
30 }
31 
32 static inline void dell_privacy_unregister_driver(void)
33 {
34 }
35 #endif /* CONFIG_DELL_PRIVACY */
36 #endif
37