wlcore: use DEVICE_ATTR_<RW|RO> macro
authorYueHaibing <yuehaibing@huawei.com>
Sun, 23 May 2021 03:35:38 +0000 (11:35 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 14 Jun 2021 15:47:09 +0000 (18:47 +0300)
commit86f1ea9d645edb16358e4a3e1602e1cec81e5048
treeed66c59b8dca6d99cd77aba81f1a5ddfaebf2ad9
parent080f9c10c773df39ccebe8dc414179d9179005a9
wlcore: use DEVICE_ATTR_<RW|RO> macro

Use DEVICE_ATTR_<RW|RO> helper instead of plain DEVICE_ATTR,
which makes the code a bit shorter and easier to read.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210523033538.25568-1-yuehaibing@huawei.com
drivers/net/wireless/ti/wlcore/sysfs.c