summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/spi_flash.c
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-16 15:24:24 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:26 +0530
commit91292e0bee9e59f029f7d1039fe5f2914b31ea85 (patch)
tree111bc690b13de9e7f15b545c02aff7d6740bd7f2 /drivers/mtd/spi/spi_flash.c
parente5961f07068443bf55a8a71ef04e7364583e495a (diff)
downloadu-boot-imx-91292e0bee9e59f029f7d1039fe5f2914b31ea85.zip
u-boot-imx-91292e0bee9e59f029f7d1039fe5f2914b31ea85.tar.gz
u-boot-imx-91292e0bee9e59f029f7d1039fe5f2914b31ea85.tar.bz2
spi: Rename op_mode_rx to mode_rx
Since spi rx mode macro's are renamed to simple and meaninfull, this patch will rename the respective structure members. Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by: Mugunthan V N <mugunthanvnm@ti.com> Tested-by: Jagan Teki <jteki@openedev.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r--drivers/mtd/spi/spi_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index e72abb9..5766c18 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -1098,7 +1098,7 @@ int spi_flash_scan(struct spi_flash *flash)
flash->sector_size = flash->erase_size;
/* Look for the fastest read cmd */
- cmd = fls(params->e_rd_cmd & spi->op_mode_rx);
+ cmd = fls(params->e_rd_cmd & spi->mode_rx);
if (cmd) {
cmd = spi_read_cmds_array[cmd - 1];
flash->read_cmd = cmd;