diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-03 20:33:39 +0800 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-06-18 09:45:21 +0200 |
commit | 21db4f475d56cbfa187ccc24a22e27ba024ec62c (patch) | |
tree | 6e5105ee1494cdafaeaed213600c0cfe0a0bf21b /drivers/mtd/nftlcore.c | |
parent | mtd: spinand: add SPI-NAND MTD resume handler (diff) | |
download | linux-dev-21db4f475d56cbfa187ccc24a22e27ba024ec62c.tar.xz linux-dev-21db4f475d56cbfa187ccc24a22e27ba024ec62c.zip |
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
Diffstat (limited to 'drivers/mtd/nftlcore.c')
0 files changed, 0 insertions, 0 deletions