mtd: mtdpart: use DEVICE_ATTR_RO() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 12:30:41 +0000 (20:30 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 11 Jun 2021 18:42:45 +0000 (20:42 +0200)
commit97f41002945fd9c55e8b80c654ea34fd434250e7
tree212f60f6921893082bede95228ed7fa7460a4c31
parent10f3b4d79958d6f9f71588c6fa862159c83fa80f
mtd: mtdpart: use DEVICE_ATTR_RO() helper macro

Use DEVICE_ATTR_RO() helper macro 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/20210603123041.12036-1-thunder.leizhen@huawei.com
drivers/mtd/mtdpart.c