aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal/imx8mm_thermal.c
diff options
context:
space:
mode:
authorGravatar Marcus Folkesson <marcus.folkesson@gmail.com> 2022-10-14 10:16:20 +0200
committerGravatar Daniel Lezcano <daniel.lezcano@kernel.org> 2022-12-14 15:25:39 +0100
commit1f455f144fb05e53ae47f84eb109a8021fe168d1 (patch)
tree297223211b660ae96be6245c752e57b052330199 /drivers/thermal/imx8mm_thermal.c
parentdt-bindings: thermal: tsens: Add sm8450 compatible (diff)
downloadlinux-1f455f144fb05e53ae47f84eb109a8021fe168d1.tar.gz
linux-1f455f144fb05e53ae47f84eb109a8021fe168d1.tar.bz2
linux-1f455f144fb05e53ae47f84eb109a8021fe168d1.zip
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>
Diffstat (limited to 'drivers/thermal/imx8mm_thermal.c')
-rw-r--r--drivers/thermal/imx8mm_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c
index e2c2673025a7..68608d8e5e29 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)