summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-fsl-lib.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-10-27 22:26:08 +0300
committerMark Brown <broonie@kernel.org>2016-10-28 21:39:23 +0300
commitf895e27f591228704954cc8927d9c61b3f3da90f (patch)
treebec90360ba75e6a38d859b77f79be5c1337abd6f /drivers/spi/spi-fsl-lib.h
parent54731265966db742dda09008bd9bbe12ae11e93e (diff)
downloadlinux-f895e27f591228704954cc8927d9c61b3f3da90f.tar.xz
spi: fsl-espi: Rename len in struct mpc8xxx_spi to rx_len and make it unsigned
Now that we introduced element tx_len in struct mpc8xxx_spi let's rename element len to rx_len as it actually is the number of bytes to receive. In addition make it unsigned. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-lib.h')
-rw-r--r--drivers/spi/spi-fsl-lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-lib.h b/drivers/spi/spi-fsl-lib.h
index 24d8bc84a111..35a7a1730d0c 100644
--- a/drivers/spi/spi-fsl-lib.h
+++ b/drivers/spi/spi-fsl-lib.h
@@ -29,7 +29,7 @@ struct mpc8xxx_spi {
const void *tx;
void *rx;
#if IS_ENABLED(CONFIG_SPI_FSL_ESPI)
- int len;
+ unsigned int rx_len;
unsigned int tx_len;
u8 *local_buf;
spinlock_t lock;