]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: use DEVICE_ATTR_ADMIN_RW() helper macro
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 3 Jun 2021 08:22:18 +0000 (16:22 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 Jun 2021 10:11:56 +0000 (13:11 +0300)
commit8dcb7e3fa5a765c0b43c5477380cc05ec85393e1
tree4b2dd920498dfa4c6cce1b94a645a2933bdbaf7a
parenta54326bfd671b7a6cd79c01a8d28bdb12d48e7b0
ssb: use DEVICE_ATTR_ADMIN_RW() helper macro

Use DEVICE_ATTR_ADMIN_RW() helper macro instead of DEVICE_ATTR(), making
it simpler and easier to read.

Because the read and write function names of the sysfs attribute have been
normalized, there is a natural association.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210603082218.11718-2-thunder.leizhen@huawei.com
drivers/ssb/pci.c
drivers/ssb/pcmcia.c