Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * This file is part of wl12xx
0004  *
0005  * Copyright (C) 2009 Nokia Corporation
0006  *
0007  * Contact: Luciano Coelho <luciano.coelho@nokia.com>
0008  */
0009 
0010 #ifndef _LINUX_WL12XX_H
0011 #define _LINUX_WL12XX_H
0012 
0013 #include <linux/err.h>
0014 
0015 struct wl1251_platform_data {
0016     int power_gpio;
0017     /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
0018     int irq;
0019     bool use_eeprom;
0020 };
0021 
0022 #ifdef CONFIG_WILINK_PLATFORM_DATA
0023 
0024 int wl1251_set_platform_data(const struct wl1251_platform_data *data);
0025 
0026 struct wl1251_platform_data *wl1251_get_platform_data(void);
0027 
0028 #else
0029 
0030 static inline
0031 int wl1251_set_platform_data(const struct wl1251_platform_data *data)
0032 {
0033     return -ENOSYS;
0034 }
0035 
0036 static inline
0037 struct wl1251_platform_data *wl1251_get_platform_data(void)
0038 {
0039     return ERR_PTR(-ENODATA);
0040 }
0041 
0042 #endif
0043 
0044 #endif