diff options
Diffstat (limited to 'include/linux/wl12xx.h')
-rw-r--r-- | include/linux/wl12xx.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h index 0d6373195d32..a54fe82e704b 100644 --- a/include/linux/wl12xx.h +++ b/include/linux/wl12xx.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #ifndef _LINUX_WL12XX_H | 24 | #ifndef _LINUX_WL12XX_H |
25 | #define _LINUX_WL12XX_H | 25 | #define _LINUX_WL12XX_H |
26 | 26 | ||
27 | #include <linux/err.h> | ||
28 | |||
27 | /* Reference clock values */ | 29 | /* Reference clock values */ |
28 | enum { | 30 | enum { |
29 | WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */ | 31 | WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */ |
@@ -55,17 +57,17 @@ struct wl12xx_platform_data { | |||
55 | int board_tcxo_clock; | 57 | int board_tcxo_clock; |
56 | unsigned long platform_quirks; | 58 | unsigned long platform_quirks; |
57 | bool pwr_in_suspend; | 59 | bool pwr_in_suspend; |
58 | |||
59 | struct wl1271_if_operations *ops; | ||
60 | }; | 60 | }; |
61 | 61 | ||
62 | /* Platform does not support level trigger interrupts */ | 62 | /* Platform does not support level trigger interrupts */ |
63 | #define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0) | 63 | #define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0) |
64 | 64 | ||
65 | #ifdef CONFIG_WL12XX_PLATFORM_DATA | 65 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
66 | 66 | ||
67 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); | 67 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); |
68 | 68 | ||
69 | struct wl12xx_platform_data *wl12xx_get_platform_data(void); | ||
70 | |||
69 | #else | 71 | #else |
70 | 72 | ||
71 | static inline | 73 | static inline |
@@ -74,8 +76,12 @@ int wl12xx_set_platform_data(const struct wl12xx_platform_data *data) | |||
74 | return -ENOSYS; | 76 | return -ENOSYS; |
75 | } | 77 | } |
76 | 78 | ||
77 | #endif | 79 | static inline |
80 | struct wl12xx_platform_data *wl12xx_get_platform_data(void) | ||
81 | { | ||
82 | return ERR_PTR(-ENODATA); | ||
83 | } | ||
78 | 84 | ||
79 | struct wl12xx_platform_data *wl12xx_get_platform_data(void); | 85 | #endif |
80 | 86 | ||
81 | #endif | 87 | #endif |