Michael Walle 58701a9606 mtd: spi-nor: hide jedec_id sysfs attribute if not present
[ Upstream commit 7d388551b6888f3725e6c957f472526b35161a5b ]

Some non-jedec compliant flashes (like the Everspin flashes) don't have
an ID at all. Hide the attribute in this case.

Fixes: 36ac02286265 ("mtd: spi-nor: add initial sysfs support")
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Link: https://lore.kernel.org/r/20220810220654.1297699-2-michael@walle.cc
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:13 +01:00
..
2022-07-03 18:08:49 -07:00
2021-09-21 18:31:16 +02:00
2018-02-23 08:17:28 -07:00
2013-03-23 16:11:31 -07:00
2017-10-30 11:46:04 +01:00
2019-07-15 20:44:49 -07:00
2018-03-17 14:20:54 +01:00
2019-06-15 08:12:45 +02:00
2019-06-15 08:12:45 +02:00
2020-02-22 09:25:42 +08:00
2021-12-23 20:23:42 +01:00
2021-05-05 11:27:24 -07:00