aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/wl12xx.h
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2015-03-18 12:38:30 -0400
committerTony Lindgren <tony@atomide.com>2015-03-24 12:48:14 -0400
commit83c3a7d4ac7fdc29a64bf9a5467a36b4c72a1eed (patch)
tree2cceed6622d8ec6e33403613cfbcfc701fcbc98f /include/linux/wl12xx.h
parent99f84cae43df242f0d69ffcfee3a4d69f9b71b44 (diff)
wlcore: remove wl12xx_platform_data
Now that we have wlcore device-tree bindings in place (for both wl12xx and wl18xx), remove the legacy wl12xx_platform_data struct, and move its members into the platform device data (that is passed to wlcore) Davinci 850 is the only platform that still set the platform data in the legacy way (and doesn't have DT bindings), so remove the relevant code/Kconfig option from the board file (as suggested by Sekhar Nori) Since no one currently uses wlcore_spi, simply remove its platform data support (DT bindings will have to be added if someone actually needs it) Signed-off-by: Luciano Coelho <luca@coelho.fi> Signed-off-by: Eliad Peller <eliad@wizery.com> Tested-by: Nikita Kiryanov <nikita@compulab.co.il> Acked-by: Kalle Valo <kvalo@codeaurora.org> Acked-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/wl12xx.h')
-rw-r--r--include/linux/wl12xx.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h
index eea1e6dac4be..95704cd4cfab 100644
--- a/include/linux/wl12xx.h
+++ b/include/linux/wl12xx.h
@@ -33,21 +33,8 @@ struct wl1251_platform_data {
33 bool use_eeprom; 33 bool use_eeprom;
34}; 34};
35 35
36struct wl12xx_platform_data {
37 int irq;
38 u32 irq_trigger;
39 bool ref_clock_xtal; /* specify whether the clock is XTAL or not */
40 u32 ref_clock_freq; /* in Hertz */
41 u32 tcxo_clock_freq; /* in Hertz, tcxo is always XTAL */
42 bool pwr_in_suspend;
43};
44
45#ifdef CONFIG_WILINK_PLATFORM_DATA 36#ifdef CONFIG_WILINK_PLATFORM_DATA
46 37
47int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
48
49struct wl12xx_platform_data *wl12xx_get_platform_data(void);
50
51int wl1251_set_platform_data(const struct wl1251_platform_data *data); 38int wl1251_set_platform_data(const struct wl1251_platform_data *data);
52 39
53struct wl1251_platform_data *wl1251_get_platform_data(void); 40struct wl1251_platform_data *wl1251_get_platform_data(void);
@@ -55,18 +42,6 @@ struct wl1251_platform_data *wl1251_get_platform_data(void);
55#else 42#else
56 43
57static inline 44static inline
58int wl12xx_set_platform_data(const struct wl12xx_platform_data *data)
59{
60 return -ENOSYS;
61}
62
63static inline
64struct wl12xx_platform_data *wl12xx_get_platform_data(void)
65{
66 return ERR_PTR(-ENODATA);
67}
68
69static inline
70int wl1251_set_platform_data(const struct wl1251_platform_data *data) 45int wl1251_set_platform_data(const struct wl1251_platform_data *data)
71{ 46{
72 return -ENOSYS; 47 return -ENOSYS;