Commit 718a4917 authored by Stefan Roese's avatar Stefan Roese Committed by Greg Kroah-Hartman

staging: spi: mt7621: Minor cosmetic changes

Align  macro definitions and add some empty lines to make the code better
readable.
Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Mark Brown <broonie@kernel.org>
Cc: Sankalp Negi <sankalpnegi2310@gmail.com>
Cc: Chuanhong Guo <gch981213@gmail.com>
Cc: John Crispin <john@phrozen.org>
Reviewd-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da05e373
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#define DRIVER_NAME "spi-mt7621" #define DRIVER_NAME "spi-mt7621"
/* in usec */ /* in usec */
#define RALINK_SPI_WAIT_MAX_LOOP 2000 #define RALINK_SPI_WAIT_MAX_LOOP 2000
...@@ -186,6 +187,7 @@ static void mt7621_spi_read_half_duplex(struct mt7621_spi *rs, ...@@ -186,6 +187,7 @@ static void mt7621_spi_read_half_duplex(struct mt7621_spi *rs,
*buf++ = val & 0xff; *buf++ = val & 0xff;
val >>= 8; val >>= 8;
} }
rx_len -= i; rx_len -= i;
} }
} }
...@@ -279,6 +281,7 @@ static int mt7621_spi_transfer_one_message(struct spi_master *master, ...@@ -279,6 +281,7 @@ static int mt7621_spi_transfer_one_message(struct spi_master *master,
mt7621_spi_flush(rs); mt7621_spi_flush(rs);
mt7621_spi_set_cs(spi, 0); mt7621_spi_set_cs(spi, 0);
msg_done: msg_done:
m->status = status; m->status = status;
spi_finalize_current_message(master); spi_finalize_current_message(master);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment