summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJeff Kletsky2019-05-23 00:05:54 +0200
committerMiquel Raynal2019-06-27 20:06:38 +0200
commit878844908e563a2f02b977bacd221c288e681c47 (patch)
treedde2a8ef34a19a7a32d9c71572b837d640cc2e07 /drivers/mtd
parentmtd: spinand: Define macros for page-read ops with three-byte addresses (diff)
downloadkernel-qcow2-linux-878844908e563a2f02b977bacd221c288e681c47.tar.gz
kernel-qcow2-linux-878844908e563a2f02b977bacd221c288e681c47.tar.xz
kernel-qcow2-linux-878844908e563a2f02b977bacd221c288e681c47.zip
mtd: spinand: Add support for two-byte device IDs
The GigaDevice GD5F1GQ4UFxxG SPI NAND utilizes two-byte device IDs. http://www.gigadevice.com/datasheet/gd5f1gq4xfxxg/ Signed-off-by: Jeff Kletsky <git-commits@allycomm.com> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/spi/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index 4c15bb58c623..556bfdb34455 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -845,7 +845,7 @@ spinand_select_op_variant(struct spinand_device *spinand,
*/
int spinand_match_and_init(struct spinand_device *spinand,
const struct spinand_info *table,
- unsigned int table_size, u8 devid)
+ unsigned int table_size, u16 devid)
{
struct nand_device *nand = spinand_to_nand(spinand);
unsigned int i;