summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/wlcore_i.h
diff options
context:
space:
mode:
authorIdo Yariv <ido@wizery.com>2012-06-17 17:30:05 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-06-22 07:46:34 (GMT)
commit02eb1d9d3bc307e2b540b8c095fa19342789f86d (patch)
treef30719415a295a56e919ec475b7e44229e445873 /drivers/net/wireless/ti/wlcore/wlcore_i.h
parentb666bb7f2fe2bdc0309b0d58afb48eae85d92221 (diff)
downloadlinux-fsl-qoriq-02eb1d9d3bc307e2b540b8c095fa19342789f86d.tar.xz
wlcore: Change read/write ops to return errors
While bus operations may fail, either due to HW or FW issues, these are never propagated to higher layers. As a result, the core driver has no way of knowing that the operations failed, and will only recover if high level logic requires it (e.g. no command completion). Change read/write bus operations to return errors to let higher layer functionality handle these. Signed-off-by: Ido Yariv <ido@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/wlcore_i.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/wlcore_i.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore_i.h b/drivers/net/wireless/ti/wlcore/wlcore_i.h
index 8260b1e..5ab31ff 100644
--- a/drivers/net/wireless/ti/wlcore/wlcore_i.h
+++ b/drivers/net/wireless/ti/wlcore/wlcore_i.h
@@ -209,9 +209,9 @@ struct wl1271_scan {
};
struct wl1271_if_operations {
- void (*read)(struct device *child, int addr, void *buf, size_t len,
- bool fixed);
- void (*write)(struct device *child, int addr, void *buf, size_t len,
+ int (*read)(struct device *child, int addr, void *buf, size_t len,
+ bool fixed);
+ int (*write)(struct device *child, int addr, void *buf, size_t len,
bool fixed);
void (*reset)(struct device *child);
void (*init)(struct device *child);