]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fb1fefab6d47b58c20a1d2e1c5a612219f596ab
tree7033105ec8633e71c117755fe68cc6c2433e7416
parent48f75b009cc0852ab61eae1c6efce8d9e347b0ce
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