summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl1251/wl1251.h
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2010-11-04 00:13:47 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:27:00 -0500
commitcb7bbc7a5535ab2333915b83391e1d846a0914df (patch)
tree07d88b56c87b9a1ff2764b25d47c102169d665ca /drivers/net/wireless/wl1251/wl1251.h
parentf81c1f48384d398dbe8f6c5b10377c7158086791 (diff)
downloadblackbird-op-linux-cb7bbc7a5535ab2333915b83391e1d846a0914df.tar.gz
blackbird-op-linux-cb7bbc7a5535ab2333915b83391e1d846a0914df.zip
wl1251: add power callback to wl1251_if_operations
Call interface specific power callback before calling board specific one. Also allow that callback to fail. This is how it's done for wl1271 and will be used for runtime_pm support. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Acked-by: Kalle Valo <kvalo@adurom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl1251/wl1251.h')
-rw-r--r--drivers/net/wireless/wl1251/wl1251.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl1251/wl1251.h b/drivers/net/wireless/wl1251/wl1251.h
index e113d4c1fb35..13fbeeccf609 100644
--- a/drivers/net/wireless/wl1251/wl1251.h
+++ b/drivers/net/wireless/wl1251/wl1251.h
@@ -256,6 +256,7 @@ struct wl1251_if_operations {
void (*write)(struct wl1251 *wl, int addr, void *buf, size_t len);
void (*read_elp)(struct wl1251 *wl, int addr, u32 *val);
void (*write_elp)(struct wl1251 *wl, int addr, u32 val);
+ int (*power)(struct wl1251 *wl, bool enable);
void (*reset)(struct wl1251 *wl);
void (*enable_irq)(struct wl1251 *wl);
void (*disable_irq)(struct wl1251 *wl);
OpenPOWER on IntegriCloud