mtd: spinand: winbond: Ignore the last ID characters
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 9 Oct 2024 12:50:01 +0000 (14:50 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 21 Oct 2024 09:55:40 +0000 (11:55 +0200)
commitff97ceb6c4addb4a6044c623119d4c1fd83eae6d
tree7bc6464d07859bb0f31603933ee954124204a0a5
parentfee9b240916df82a8b07aef0fdfe96785417a164
mtd: spinand: winbond: Ignore the last ID characters

The last 4 characters in Winbond's branding indicate:
- the package type (ZE/SF/TB),
- the temperature grade (I/J),
- special options, typically the continuous read vs. page read feature
  support and its default (G/T/F/R),

None of these information impact us, at the software level (well, the
continuous read mode by default is impacting, but is already handled
gracefully by disabling it in the initialization phase), so let's get
rid of it.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/linux-mtd/20241009125002.191109-4-miquel.raynal@bootlin.com
drivers/mtd/nand/spi/winbond.c