summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf_probe.c
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-13 20:12:45 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:25 +0530
commitcdf3393814d4d811772b4414def79a05ed75b749 (patch)
treee468e07abae0f9ca89cf5347eb85a2734fac6894 /drivers/mtd/spi/sf_probe.c
parent095a41d3c281b2c6576ea7e42780b565d619a1af (diff)
downloadu-boot-cdf3393814d4d811772b4414def79a05ed75b749.tar.gz
u-boot-cdf3393814d4d811772b4414def79a05ed75b749.tar.bz2
u-boot-cdf3393814d4d811772b4414def79a05ed75b749.zip
spi: Rename SPI_TX_BP|QPP to SPI_TX_BYTE|QUAD
Since SPI_TX_* are spi_slave{} members so use spi protocol notation instead spi flash programming, like SPI_TX_BP => SPI_TX_BYTE SPI_TX_QPP => SPI_TX_QUAD 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/mtd/spi/sf_probe.c')
-rw-r--r--drivers/mtd/spi/sf_probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index 3519ffdc77..daa1d5b249 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -128,7 +128,7 @@ static int spi_flash_std_write(struct udevice *dev, u32 offset, size_t len,
#if defined(CONFIG_SPI_FLASH_SST)
if (flash->flags & SNOR_F_SST_WR) {
- if (flash->spi->mode & SPI_TX_BP)
+ if (flash->spi->mode & SPI_TX_BYTE)
return sst_write_bp(flash, offset, len, buf);
else
return sst_write_wp(flash, offset, len, buf);