All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yangtao Li <tiny.windzz@gmail.com>
To: john.stultz@linaro.org, tglx@linutronix.de, sboyd@kernel.org
Cc: linux-kernel@vger.kernel.org, Yangtao Li <tiny.windzz@gmail.com>
Subject: [PATCH] clocksource: use BIT() for clock source flags
Date: Tue, 15 Jan 2019 11:41:13 -0500	[thread overview]
Message-ID: <20190115164113.19560-1-tiny.windzz@gmail.com> (raw)

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
 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


                 reply	other threads:[~2019-01-15 16:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190115164113.19560-1-tiny.windzz@gmail.com \
    --to=tiny.windzz@gmail.com \
    --cc=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.