clocksource/drivers/ingenic: Use bitfield macro helpers
author周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Fri, 30 Jul 2021 09:43:08 +0000 (17:43 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 14 Aug 2021 00:44:35 +0000 (02:44 +0200)
commit3b87265d825a2d29eb6b67511f0e7ed62225cd97
tree2b626e5f54341298a71a7c3ea17cdb60cb4e8903
parentbe83c3b6e7b8ff22f72827a613bf6f3aa5afadbb
clocksource/drivers/ingenic: Use bitfield macro helpers

Use "FIELD_GET()" and "FIELD_PREP()" to simplify the code.

[dlezcano] : Changed title

Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1627638188-116163-1-git-send-email-zhouyanjie@wanyeetech.com
drivers/clocksource/ingenic-sysost.c