summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl12xx/wl1271_spi.c
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2010-09-16 01:22:04 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-09-21 11:04:56 -0400
commit2cc78ff78c0af502b040d4527212e29e02d3231d (patch)
treef056210964e0d5799027f900dec47aa10572599a /drivers/net/wireless/wl12xx/wl1271_spi.c
parentc1f9a095600e07fefe64eb94eb711f410100824a (diff)
downloadlwn-2cc78ff78c0af502b040d4527212e29e02d3231d.tar.gz
lwn-2cc78ff78c0af502b040d4527212e29e02d3231d.zip
wl1271: propagate set_power's return value
Make it possible for the set power method to indicate a success/failure return value. This is needed to support more complex power on/off operations such as SDIO power manipulations. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Acked-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_spi.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_spi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_spi.c b/drivers/net/wireless/wl12xx/wl1271_spi.c
index c3fdab75ad2a..de56d8d9ee66 100644
--- a/drivers/net/wireless/wl12xx/wl1271_spi.c
+++ b/drivers/net/wireless/wl12xx/wl1271_spi.c
@@ -312,10 +312,12 @@ static irqreturn_t wl1271_irq(int irq, void *cookie)
return IRQ_HANDLED;
}
-static void wl1271_spi_set_power(struct wl1271 *wl, bool enable)
+static int wl1271_spi_set_power(struct wl1271 *wl, bool enable)
{
if (wl->set_power)
wl->set_power(enable);
+
+ return 0;
}
static struct wl1271_if_operations spi_ops = {