summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/core.h
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2022-04-20 13:34:21 +0300
committerPratyush Yadav <p.yadav@ti.com>2022-04-27 14:57:35 +0530
commita007d81aa5255c8796f763a64db8c397fc252bb6 (patch)
treea06be3037ef9275c683ad4e4a30de85f5e9bd3b3 /drivers/mtd/spi-nor/core.h
parent86b6b55ffbbc0df2c8e3c1d62fd12388737225f6 (diff)
downloadlinux-a007d81aa5255c8796f763a64db8c397fc252bb6.tar.bz2
mtd: spi-nor: manufacturers: Use spi_nor_read_id() core method
Use spi_nor_read_id() core method to avoid duplication of code. Now the ID is read on the full SPI_NOR_MAX_ID_LEN instead of round_up(nor->info->id_len, 2), but it doesn't harm to read more ID bytes, so the change comes with no secondary effects. dev_dbg messages in case spi_nor_read_id() fails, will be added in a further patch after we split the octal DTR enable/disable methods. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Michael Walle <michael@walle.cc> Link: https://lore.kernel.org/r/20220420103427.47867-6-tudor.ambarus@microchip.com
Diffstat (limited to 'drivers/mtd/spi-nor/core.h')
0 files changed, 0 insertions, 0 deletions