mtd: spi-nor: Remove debugfs entries that duplicate sysfs entries
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 17 Dec 2021 12:26:35 +0000 (14:26 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 29 Dec 2021 08:22:14 +0000 (10:22 +0200)
commit5f340402bbfc1ee75e7b62b98f6ad85e14ce587c
tree8c878072a1e578206eceb150f4761652e155d930
parent9de3cb1cc95bc815ff6d29cfe6c5e1f171ac2b09
mtd: spi-nor: Remove debugfs entries that duplicate sysfs entries

SPI NOR sysfs defines partname and jedec_id device attributes, which
duplicate the information from debugfs. Since the sysfs directory
structure and the attributes in each directory define an ABI between the
kernel and user space, thus it can never be removed, remove the debugfs
entries so that we don't duplicate the information.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20211217122636.474976-2-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/core.c