mtd: spi-nor: sysfs: hide manufacturer if it is not set
authorMichael Walle <michael@walle.cc>
Wed, 10 Aug 2022 22:06:49 +0000 (00:06 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 21 Nov 2022 13:37:15 +0000 (15:37 +0200)
commit0d9270f2762b8a2bd0df7c4a2e7e651703783793
treec9ebe22b8977061f672f22d8059bbe818b258ec5
parent7d388551b6888f3725e6c957f472526b35161a5b
mtd: spi-nor: sysfs: hide manufacturer if it is not set

The manufacturer may be optional when pure SFDP flashes are supported.
Hide the sysfs property if no manufacturer is set.

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-3-michael@walle.cc
Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor
drivers/mtd/spi-nor/sysfs.c