aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/spilib.c
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-05-16 10:33:20 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-16 20:02:58 -0700
commit22e26a3a13503f3c35ed8bbb6a7e9e33ad2c6987 (patch)
treed2d5937d1bc55259510b3fc8376fd8eee5884044 /drivers/staging/greybus/spilib.c
parentgreybus: fw-management: Update header's license (diff)
downloadlinux-dev-22e26a3a13503f3c35ed8bbb6a7e9e33ad2c6987.tar.xz
linux-dev-22e26a3a13503f3c35ed8bbb6a7e9e33ad2c6987.zip
greybus: spi: rename rdwr field to xfer_flags
As more bits will be added to the field, let's make the field more generic and name it accordingly. So, rename it from rdwr to xfer_flags. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/spilib.c')
-rw-r--r--drivers/staging/greybus/spilib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/spilib.c b/drivers/staging/greybus/spilib.c
index 6ab1c5f77b7a..9eecbf391259 100644
--- a/drivers/staging/greybus/spilib.c
+++ b/drivers/staging/greybus/spilib.c
@@ -255,14 +255,14 @@ static struct gb_operation *gb_spi_operation_create(struct gb_spilib *spi,
/* Copy tx data */
if (xfer->tx_buf) {
- gb_xfer->rdwr |= GB_SPI_XFER_WRITE;
+ gb_xfer->xfer_flags |= GB_SPI_XFER_WRITE;
memcpy(tx_data, xfer->tx_buf + spi->tx_xfer_offset,
xfer_len);
tx_data += xfer_len;
}
if (xfer->rx_buf)
- gb_xfer->rdwr |= GB_SPI_XFER_READ;
+ gb_xfer->xfer_flags |= GB_SPI_XFER_READ;
if (xfer == spi->last_xfer) {
msg->state = GB_SPI_STATE_OP_DONE;