[PATCH 0/2] mtd: core: add and use MTD_DEVICE_ATTR_RO/RW() helper macros to simplify code

From: Zhen Lei
Date: Thu Jun 03 2021 - 08:53:32 EST


List of changed function names:
mtd_ecc_stats_corrected_show --> mtd_corrected_bits_show //MTD_DEVICE_ATTR_RO(corrected_bits) /* ecc stats corrected */
mtd_ecc_stats_errors_show --> mtd_ecc_failures_show //MTD_DEVICE_ATTR_RO(ecc_failures) /* ecc stats errors */
mtd_badblocks_show --> mtd_bad_blocks_show //MTD_DEVICE_ATTR_RO(bad_blocks)
mtd_bbtblocks_show --> mtd_bbt_blocks_show //MTD_DEVICE_ATTR_RO(bbt_blocks)


Zhen Lei (2):
mtd: core: add MTD_DEVICE_ATTR_RO/RW() helper macros
mtd: core: use MTD_DEVICE_ATTR_RO/RW() helper macros

drivers/mtd/mtdcore.c | 52 ++++++++++++++++++++++---------------------
1 file changed, 27 insertions(+), 25 deletions(-)

--
2.26.0.106.g9fadedd