cpu/hotplug: Use DEVICE_ATTR_*() macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 27 May 2021 14:11:05 +0000 (22:11 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Aug 2021 16:11:12 +0000 (18:11 +0200)
commit1782dc87b2edcf3a6c350ead748a8941b5835975
tree7033105ec8633e71c117755fe68cc6c2433e7416
parent11bc021d1fbaaa1a6e7b92d6631faa875dd40b7d
cpu/hotplug: Use DEVICE_ATTR_*() macro

Use DEVICE_ATTR_*() 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: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210527141105.2312-1-yuehaibing@huawei.com
kernel/cpu.c