projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8887fd
)
thermal/drivers/sun8i: Convert to use macro
author
Yangtao Li
<frank.li@vivo.com>
Mon, 23 Jan 2023 10:23:19 +0000
(18:23 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Tue, 24 Jan 2023 10:43:22 +0000
(11:43 +0100)
Use TEMP_CALIB_MASK macro instead of raw number.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link:
https://lore.kernel.org/r/20230123102319.37710-1-frank.li@vivo.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/sun8i_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/sun8i_thermal.c
b/drivers/thermal/sun8i_thermal.c
index e64d06d1328ce0b3e3575b867dd87842a6cb56c9..497beac63e5d9305f2f41aa95c0d1ecca719bebe 100644
(file)
--- 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);
}