]> git.baikalelectronics.ru Git - kernel.git/commit
clockevents: Use DEVICE_ATTR_[RO|WO] macros
authorYueHaibing <yuehaibing@huawei.com>
Sun, 23 May 2021 06:58:25 +0000 (14:58 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 May 2021 15:04:42 +0000 (17:04 +0200)
commit4d65f6e3a901fdfe54e3b52f1d3c85b979406412
treea7c49623e615ef5b8da7f802f9c41cb56b022862
parent522fa64953e0d3fbb5fa5fd7565121714af2a489
clockevents: Use DEVICE_ATTR_[RO|WO] macros

Use the DEVICE_ATTR_[RO|WO] helpers 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/20210523065825.19684-1-yuehaibing@huawei.com
kernel/time/clockevents.c