1 /* 2 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 /** 18 * DOC: wlan_gpio_api.h 19 * 20 * This header file provide API declarations required for gpio cfg 21 * that called by other components 22 */ 23 24 #ifndef __WLAN_GPIO_CFG_API_H__ 25 #define __WLAN_GPIO_CFG_API_H__ 26 27 #include <qdf_types.h> 28 29 #ifdef WLAN_FEATURE_GPIO_CFG 30 31 /** 32 * wlan_gpio_init() - API to init component 33 * 34 * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error 35 */ 36 QDF_STATUS wlan_gpio_init(void); 37 38 /** 39 * wlan_gpio_deinit() - API to deinit component 40 * 41 * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error 42 */ 43 QDF_STATUS wlan_gpio_deinit(void); 44 45 #else 46 static inline 47 QDF_STATUS wlan_gpio_init(void) 48 { 49 return QDF_STATUS_SUCCESS; 50 } 51 52 static inline 53 QDF_STATUS wlan_gpio_deinit(void) 54 { 55 return QDF_STATUS_SUCCESS; 56 } 57 #endif /* WLAN_FEATURE_GPIO_CFG */ 58 #endif /*__WLAN_GPIO_CFG_API_H__*/ 59 60