diff options
author | Luciano Coelho <coelho@ti.com> | 2012-05-10 09:14:10 (GMT) |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 12:58:20 (GMT) |
commit | 7140df6e51ecca70e8963f18e9836e62090221c2 (patch) | |
tree | 1ca50fe5978940f0fce150c71ece37cc7e0fa4f5 /drivers/net/wireless/ti/wlcore/hw_ops.h | |
parent | 8c0ea1021c38cfd2f0ba5d8fdd48a9e9827bbc03 (diff) | |
download | linux-fsl-qoriq-7140df6e51ecca70e8963f18e9836e62090221c2.tar.xz |
wlcore: create private static_data area and add operation to parse it
The wl18xx firmware has more information in the static_data than
wl12xx. To be able to parse that in an abstracted way, this patch
adds a priv area to the static data struct and an operation that
allows the lower driver to parse it if necessary.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/hw_ops.h')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/hw_ops.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/hw_ops.h b/drivers/net/wireless/ti/wlcore/hw_ops.h index 1555c3e..c590b6f 100644 --- a/drivers/net/wireless/ti/wlcore/hw_ops.h +++ b/drivers/net/wireless/ti/wlcore/hw_ops.h @@ -158,4 +158,13 @@ wlcore_debugfs_init(struct wl1271 *wl, struct dentry *rootdir) return 0; } +static inline int +wlcore_handle_static_data(struct wl1271 *wl, void *static_data) +{ + if (wl->ops->handle_static_data) + return wl->ops->handle_static_data(wl, static_data); + + return 0; +} + #endif |