]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c871d8927f2bbba7686f35814dd3c403e6730f6
treeed66c59b8dca6d99cd77aba81f1a5ddfaebf2ad9
parent3cdecca6c7eddcb9437101446076ac09ff68aa33
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