Skip to content

Commit 14533a5

Browse files
Michael Kaodlezcano
authored andcommitted
thermal/drivers/mediatek: Fix bank number settings on mt8183
MT8183_NUM_ZONES should be set to 1 because MT8183 doesn't have multiple banks. Fixes: a4ffe6b ("thermal: mediatek: add support for MT8183") Signed-off-by: Michael Kao <[email protected]> Signed-off-by: Hsin-Yi Wang <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b45fd13 commit 14533a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/thermal/mtk_thermal.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ enum {
211211
/* The total number of temperature sensors in the MT8183 */
212212
#define MT8183_NUM_SENSORS 6
213213

214+
/* The number of banks in the MT8183 */
215+
#define MT8183_NUM_ZONES 1
216+
214217
/* The number of sensing points per bank */
215218
#define MT8183_NUM_SENSORS_PER_ZONE 6
216219

@@ -497,7 +500,7 @@ static const struct mtk_thermal_data mt7622_thermal_data = {
497500
*/
498501
static const struct mtk_thermal_data mt8183_thermal_data = {
499502
.auxadc_channel = MT8183_TEMP_AUXADC_CHANNEL,
500-
.num_banks = MT8183_NUM_SENSORS_PER_ZONE,
503+
.num_banks = MT8183_NUM_ZONES,
501504
.num_sensors = MT8183_NUM_SENSORS,
502505
.vts_index = mt8183_vts_index,
503506
.cali_val = MT8183_CALIBRATION,

0 commit comments

Comments
 (0)