mtd: rawnand: r852: use DEVICE_ATTR_RO() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 12:33:39 +0000 (20:33 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Jun 2021 07:45:21 +0000 (09:45 +0200)
commit21db4f475d56cbfa187ccc24a22e27ba024ec62c
tree6e5105ee1494cdafaeaed213600c0cfe0a0bf21b
parentf145b9dcf998427f1e3f96f61b6ca9afd629dfda
mtd: rawnand: r852: 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/20210603123339.12089-1-thunder.leizhen@huawei.com
drivers/mtd/nand/raw/r852.c