Skip to content

Commit d69e704

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/sun8i: Convert to use macro
Use TEMP_CALIB_MASK macro instead of raw number. Signed-off-by: Yangtao Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent f8887fd commit d69e704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/sun8i_thermal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static int sun8i_h3_ths_calibrate(struct ths_device *tmdev,
210210

211211
regmap_update_bits(tmdev->regmap,
212212
SUN8I_THS_TEMP_CALIB + (4 * (i >> 1)),
213-
0xfff << offset,
213+
TEMP_CALIB_MASK << offset,
214214
caldata[i] << offset);
215215
}
216216

@@ -271,7 +271,7 @@ static int sun50i_h6_ths_calibrate(struct ths_device *tmdev,
271271
offset = (i % 2) * 16;
272272
regmap_update_bits(tmdev->regmap,
273273
SUN50I_H6_THS_TEMP_CALIB + (i / 2 * 4),
274-
0xfff << offset,
274+
TEMP_CALIB_MASK << offset,
275275
cdata << offset);
276276
}
277277

0 commit comments

Comments
 (0)