]> 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)
commit2edd37e26e1254745a252e84136a9b6f3ee09792
treea7c49623e615ef5b8da7f802f9c41cb56b022862
parentaca98666aaa2f68c1752cba973556812e3a190eb
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