summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_spi.c
diff options
context:
space:
mode:
authorGlen Lee <glen.lee@atmel.com>2015-11-18 15:11:31 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-18 14:30:50 -0800
commitf8598aaa21b222864badc5d7f9e04fe1c4fbc12d (patch)
treef38442ea530ba86463b23e97b92adf71c5bc0698 /drivers/staging/wilc1000/wilc_spi.c
parent1b8d17a0c94fe6e42443a01f33a36a199ec58fe6 (diff)
downloadop-kernel-dev-f8598aaa21b222864badc5d7f9e04fe1c4fbc12d.zip
op-kernel-dev-f8598aaa21b222864badc5d7f9e04fe1c4fbc12d.tar.gz
staging: wilc1000: wilc_spi_write_read: pass struct wilc
This patch adds new function parameter struct wilc and use it instead of global variable wilc_dev, and pass wilc to the function as well. Signed-off-by: Glen Lee <glen.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_spi.c')
-rw-r--r--drivers/staging/wilc1000/wilc_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index 5e21109..d6f4121 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -250,7 +250,7 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,
}
rix = len;
- if (!wilc_spi_write_read(wb, rb, len2)) {
+ if (!wilc_spi_write_read(wilc, wb, rb, len2)) {
PRINT_ER("[wilc spi]: Failed cmd write, bus error...\n");
result = N_FAIL;
return result;
OpenPOWER on IntegriCloud