summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-13 20:10:33 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:25 +0530
commit095a41d3c281b2c6576ea7e42780b565d619a1af (patch)
tree25edd3d2f021063cff33918aca8d76d8a456c2c1 /drivers/spi
parentf5c3c033f7ebd86e6a6e90f4a97b54d3e0f41d9a (diff)
downloadu-boot-imx-095a41d3c281b2c6576ea7e42780b565d619a1af.zip
u-boot-imx-095a41d3c281b2c6576ea7e42780b565d619a1af.tar.gz
u-boot-imx-095a41d3c281b2c6576ea7e42780b565d619a1af.tar.bz2
spi: Use mode instead of op_mode_tx
Used mode member from spi_slave{} instead of op_mode_tx. Cc: Simon Glass <sjg@chromium.org> Tested-by: Jagan Teki <jteki@openedev.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/ich.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index f85af9c..64322dd 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -753,7 +753,7 @@ static int ich_spi_child_pre_probe(struct udevice *dev)
*/
if (plat->ich_version == 7) {
slave->op_mode_rx = SPI_OPM_RX_AS;
- slave->op_mode_tx = SPI_OPM_TX_BP;
+ slave->mode = SPI_TX_BP;
}
return 0;