1 /*
2  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: wlan_hdd_sysfs_dump_in_progress.h
22  *
23  * hdd dump in progress declarations
24  */
25 
26 #if defined(WLAN_SYSFS) && defined(CONFIG_WLAN_DUMP_IN_PROGRESS)
27 /**
28  * hdd_sysfs_create_dump_in_progress_interface() - API to create
29  * dump_in_progress sysfs file
30  * @wifi_kobject: sysfs wifi kobject
31  *
32  * Return: None
33  */
34 void hdd_sysfs_create_dump_in_progress_interface(struct kobject *wifi_kobject);
35 
36 /**
37  * hdd_sysfs_destroy_dump_in_progress_interface() - API to destroy
38  * dump_in_progress sysfs file
39  * @wifi_kobject: sysfs wifi kobject
40  *
41  * Return: None
42  */
43 void hdd_sysfs_destroy_dump_in_progress_interface(struct kobject *wifi_kobject);
44 
45 #else
46 static inline void
hdd_sysfs_create_dump_in_progress_interface(struct kobject * wifi_kobject)47 hdd_sysfs_create_dump_in_progress_interface(struct kobject *wifi_kobject)
48 {
49 }
50 static inline void
hdd_sysfs_destroy_dump_in_progress_interface(struct kobject * wifi_kobject)51 hdd_sysfs_destroy_dump_in_progress_interface(struct kobject *wifi_kobject)
52 {
53 }
54 #endif
55