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>
This commit is contained in:
Родитель
f0f4c3adcf
Коммит
1f455f144f
|
@ -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)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче