mtd: spi-nor: sysfs: hide the flash name if not set
authorJaimeLiao <jaimeliao@mxic.com.tw>
Fri, 15 Dec 2023 08:21:37 +0000 (10:21 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Dec 2023 03:08:23 +0000 (05:08 +0200)
commitfc2efaf90a4538781aac26cf44d705c1d93fb9f5
tree52b3ff42cf5ffd0d7b5a785a93255067b81ab9da
parent15eb8303bb424e36a7f5f411c6bb489bc0c1c06e
mtd: spi-nor: sysfs: hide the flash name if not set

The flash name is not reliable as we saw flash ID collisions.
Hide the flash name if not set.

Signed-off-by: JaimeLiao <jaimeliao@mxic.com.tw>
Reviewed-by: Michael Walle <michael@walle.cc>
[ta: update commit subject and description and the sysfs description]
Link: https://lore.kernel.org/r/20231215082138.16063-4-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor
drivers/mtd/spi-nor/sysfs.c