Skip to content

Commit 71b1b55

Browse files
committed
Merge tag 'fixes-for-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull MTD fixes from Richard Weinberger: "Two fixes for MTD: - spi-nor: Fix for a regression in write_sr() - rawnand: Regression fix for the au1550nd driver" * tag 'fixes-for-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: mtd: rawnand: au1550nd: Fix au_read_buf16() prototype mtd: spi-nor: Fix direction of the write_sr() transfer
2 parents b27528b + df8fed8 commit 71b1b55

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/mtd/nand/raw/au1550nd.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,15 @@ static void au_write_buf16(struct nand_chip *this, const u_char *buf, int len)
134134

135135
/**
136136
* au_read_buf16 - read chip data into buffer
137-
* @mtd: MTD device structure
137+
* @this: NAND chip object
138138
* @buf: buffer to store date
139139
* @len: number of bytes to read
140140
*
141141
* read function for 16bit buswidth
142142
*/
143-
static void au_read_buf16(struct mtd_info *mtd, u_char *buf, int len)
143+
static void au_read_buf16(struct nand_chip *this, u_char *buf, int len)
144144
{
145145
int i;
146-
struct nand_chip *this = mtd_to_nand(mtd);
147146
u16 *p = (u16 *) buf;
148147
len >>= 1;
149148

drivers/mtd/spi-nor/spi-nor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static int write_sr(struct spi_nor *nor, u8 val)
487487
SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRSR, 1),
488488
SPI_MEM_OP_NO_ADDR,
489489
SPI_MEM_OP_NO_DUMMY,
490-
SPI_MEM_OP_DATA_IN(1, nor->bouncebuf, 1));
490+
SPI_MEM_OP_DATA_OUT(1, nor->bouncebuf, 1));
491491

492492
return spi_mem_exec_op(nor->spimem, &op);
493493
}

0 commit comments

Comments
 (0)