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)
commit1fa98d96ea0ff6c8770eeba90417aab4b4e07f52
treea7c49623e615ef5b8da7f802f9c41cb56b022862
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
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