]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: core: use MTD_DEVICE_ATTR_RO/RW() helper macros
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 12:53:23 +0000 (20:53 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 11 Jun 2021 18:42:57 +0000 (20:42 +0200)
commitcd8d5ac4cfce67591d4782ededcfe30f521f349c
treef35f95803c763dea305f9cade5124659e45bff65
parent1b13e3249c3a005c9641695e8be038d14b447e08
mtd: core: use MTD_DEVICE_ATTR_RO/RW() helper macros

Use MTD_DEVICE_ATTR_RO/RW() helper macros instead of plain DEVICE_ATTR(),
which makes the code a bit shorter and easier to read.

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-3-thunder.leizhen@huawei.com
drivers/mtd/mtdcore.c