linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] clocksource: use BIT() for clock source flags
@ 2019-01-15 16:45 Yangtao Li
  0 siblings, 0 replies; only message in thread
From: Yangtao Li @ 2019-01-15 16:45 UTC (permalink / raw)
  To: john.stultz, tglx, sboyd; +Cc: linux-kernel, Yangtao Li

It's a small tidy-up.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
v2:
-add missing changelog
---
 include/linux/clocksource.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index b21db536fd52..130f4c3c0781 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -112,14 +112,14 @@ struct clocksource {
 /*
  * Clock source flags bits::
  */
-#define CLOCK_SOURCE_IS_CONTINUOUS		0x01
-#define CLOCK_SOURCE_MUST_VERIFY		0x02
-
-#define CLOCK_SOURCE_WATCHDOG			0x10
-#define CLOCK_SOURCE_VALID_FOR_HRES		0x20
-#define CLOCK_SOURCE_UNSTABLE			0x40
-#define CLOCK_SOURCE_SUSPEND_NONSTOP		0x80
-#define CLOCK_SOURCE_RESELECT			0x100
+#define CLOCK_SOURCE_IS_CONTINUOUS		BIT(0)
+#define CLOCK_SOURCE_MUST_VERIFY		BIT(1)
+
+#define CLOCK_SOURCE_WATCHDOG			BIT(4)
+#define CLOCK_SOURCE_VALID_FOR_HRES		BIT(5)
+#define CLOCK_SOURCE_UNSTABLE			BIT(6)
+#define CLOCK_SOURCE_SUSPEND_NONSTOP		BIT(7)
+#define CLOCK_SOURCE_RESELECT			BIT(8)
 
 /* simplify initialization of mask field */
 #define CLOCKSOURCE_MASK(bits) GENMASK_ULL((bits) - 1, 0)
-- 
2.17.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-15 16:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 16:45 [PATCH v2] clocksource: use BIT() for clock source flags Yangtao Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).