* [PATCH] thermal: sun8i: convert to use macro
@ 2023-01-23 10:23 Yangtao Li
2023-01-24 10:40 ` Daniel Lezcano
0 siblings, 1 reply; 2+ messages in thread
From: Yangtao Li @ 2023-01-23 10:23 UTC (permalink / raw)
To: anarsoul, tiny.windzz, rafael, daniel.lezcano, amitk, rui.zhang,
wens, jernej.skrabec, samuel
Cc: linux-pm, linux-arm-kernel, linux-sunxi, linux-kernel, Yangtao Li
Use TEMP_CALIB_MASK macro instead of raw number.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/thermal/sun8i_thermal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
index e64d06d1328c..497beac63e5d 100644
--- a/drivers/thermal/sun8i_thermal.c
+++ b/drivers/thermal/sun8i_thermal.c
@@ -210,7 +210,7 @@ static int sun8i_h3_ths_calibrate(struct ths_device *tmdev,
regmap_update_bits(tmdev->regmap,
SUN8I_THS_TEMP_CALIB + (4 * (i >> 1)),
- 0xfff << offset,
+ TEMP_CALIB_MASK << offset,
caldata[i] << offset);
}
@@ -271,7 +271,7 @@ static int sun50i_h6_ths_calibrate(struct ths_device *tmdev,
offset = (i % 2) * 16;
regmap_update_bits(tmdev->regmap,
SUN50I_H6_THS_TEMP_CALIB + (i / 2 * 4),
- 0xfff << offset,
+ TEMP_CALIB_MASK << offset,
cdata << offset);
}
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] thermal: sun8i: convert to use macro
2023-01-23 10:23 [PATCH] thermal: sun8i: convert to use macro Yangtao Li
@ 2023-01-24 10:40 ` Daniel Lezcano
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2023-01-24 10:40 UTC (permalink / raw)
To: Yangtao Li, anarsoul, tiny.windzz, rafael, amitk, rui.zhang,
wens, jernej.skrabec, samuel
Cc: linux-pm, linux-arm-kernel, linux-sunxi, linux-kernel
On 23/01/2023 11:23, Yangtao Li wrote:
> Use TEMP_CALIB_MASK macro instead of raw number.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-24 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 10:23 [PATCH] thermal: sun8i: convert to use macro Yangtao Li
2023-01-24 10:40 ` Daniel Lezcano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®