summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/fsl-quadspi.c
diff options
context:
space:
mode:
authorJagan Teki2015-08-19 11:56:44 +0200
committerBrian Norris2015-09-12 01:04:55 +0200
commitf9f3ce835ddce3c669eee869253105f88819888b (patch)
tree583437baa5ae4515d6717b408a8b1249c0dba6b4 /drivers/mtd/spi-nor/fsl-quadspi.c
parentmtd: spi-nor: Use write_sr for write status (diff)
downloadkernel-qcow2-linux-f9f3ce835ddce3c669eee869253105f88819888b.tar.gz
kernel-qcow2-linux-f9f3ce835ddce3c669eee869253105f88819888b.tar.xz
kernel-qcow2-linux-f9f3ce835ddce3c669eee869253105f88819888b.zip
mtd: spi-nor: Zap unneeded write_enable from write_reg
The 'write_enable' argument is unused and unneeded, so remove it from the API. Signed-off-by: Jagan Teki <jteki@openedev.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Han Xu <han.xu@freescale.com> [Brian: fixed for nxp-spifi.c] Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/spi-nor/fsl-quadspi.c')
-rw-r--r--drivers/mtd/spi-nor/fsl-quadspi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index f72483247c75..2954f89fc8be 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -797,8 +797,7 @@ static int fsl_qspi_read_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len)
return 0;
}
-static int fsl_qspi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len,
- int write_enable)
+static int fsl_qspi_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len)
{
struct fsl_qspi *q = nor->priv;
int ret;