From: "thermal-bot for Marcus Folkesson" <tip-bot2@linutronix.de>
To: linux-pm@vger.kernel.org
Cc: Marcus Folkesson <marcus.folkesson@gmail.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
rui.zhang@intel.com, amitk@kernel.org
Subject: [thermal: thermal/next] thermal/drivers/imx8mm_thermal: Use GENMASK() when appropriate
Date: Fri, 09 Dec 2022 15:26:31 -0000 [thread overview]
Message-ID: <167059959160.4906.676834455950682920.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20221014081620.1599511-1-marcus.folkesson@gmail.com>
The following commit has been merged into the thermal/next branch of thermal:
Commit-ID: 1043376c94ebc57ddb4c2ce5be2bb41dcb8459b2
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//1043376c94ebc57ddb4c2ce5be2bb41dcb8459b2
Author: Marcus Folkesson <marcus.folkesson@gmail.com>
AuthorDate: Fri, 14 Oct 2022 10:16:20 +02:00
Committer: Daniel Lezcano <daniel.lezcano@kernel.org>
CommitterDate: Thu, 08 Dec 2022 14:30:43 +01:00
thermal/drivers/imx8mm_thermal: Use GENMASK() when appropriate
GENMASK() is preferred to use for bitmasks.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20221014081620.1599511-1-marcus.folkesson@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/thermal/imx8mm_thermal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c
index e2c2673..68608d8 100644
--- a/drivers/thermal/imx8mm_thermal.c
+++ b/drivers/thermal/imx8mm_thermal.c
@@ -23,8 +23,8 @@
#define TER_ADC_PD BIT(30)
#define TER_EN BIT(31)
-#define TRITSR_TEMP0_VAL_MASK 0xff
-#define TRITSR_TEMP1_VAL_MASK 0xff0000
+#define TRITSR_TEMP0_VAL_MASK GENMASK(7, 0)
+#define TRITSR_TEMP1_VAL_MASK GENMASK(23, 16)
#define PROBE_SEL_ALL GENMASK(31, 30)
prev parent reply other threads:[~2022-12-09 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 8:16 [PATCH] thermal: imx8mm_thermal: use GENMASK() when appropriate Marcus Folkesson
2022-10-17 8:04 ` Peng Fan
2022-12-09 15:26 ` thermal-bot for Marcus Folkesson [this message]
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=167059959160.4906.676834455950682920.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=amitk@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=marcus.folkesson@gmail.com \
--cc=rui.zhang@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox