aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/hw_ops.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-05-10 12:14:10 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-05 15:58:20 +0300
commit7140df6e51ecca70e8963f18e9836e62090221c2 (patch)
tree1ca50fe5978940f0fce150c71ece37cc7e0fa4f5 /drivers/net/wireless/ti/wlcore/hw_ops.h
parentwl18xx: implement fw status debugfs entries (diff)
downloadlinux-dev-7140df6e51ecca70e8963f18e9836e62090221c2.tar.xz
linux-dev-7140df6e51ecca70e8963f18e9836e62090221c2.zip
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.h9
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 1555c3e12c1b..c590b6f529d1 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