0001
0002
0003
0004
0005
0006
0007
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
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