mtd: core: add MTD_DEVICE_ATTR_RO/RW() helper macros
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 12:53:22 +0000 (20:53 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 11 Jun 2021 18:42:50 +0000 (20:42 +0200)
commitb4e248632c968d985f0ecfd7924423fbefc39d1c
treea0d13b7179dbe0aedc7788327b4e937cb9fb2b70
parent97f41002945fd9c55e8b80c654ea34fd434250e7
mtd: core: add MTD_DEVICE_ATTR_RO/RW() helper macros

Compared with the definition of DEVICE_ATTR_RO/RW(), the read and write
function names of the sysfs attribute have an additional "mtd_" prefix.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210603125323.12142-2-thunder.leizhen@huawei.com
drivers/mtd/mtdcore.c