diff options
author | 2020-03-23 20:15:35 +0800 | |
---|---|---|
committer | 2020-07-24 16:24:27 -0400 | |
commit | 92679ebf5e692342e46c4b9ea104953301e21efe (patch) | |
tree | 8922db5839bbbe33c75be702e3ce424f77807c93 | |
parent | 83e497ec8490c3c18bcbdd790e3a492e1c836b0f (diff) | |
download | linux-yocto-92679ebf5e692342e46c4b9ea104953301e21efe.tar.gz linux-yocto-92679ebf5e692342e46c4b9ea104953301e21efe.tar.bz2 linux-yocto-92679ebf5e692342e46c4b9ea104953301e21efe.zip |
thermal/drivers/mediatek: Fix bank number settings on mt8183
commit 14533a5a6c12e8d7de79d309d4085bf186058fe1 upstream.
MT8183_NUM_ZONES should be set to 1
because MT8183 doesn't have multiple banks.
Fixes: a4ffe6b52d27 ("thermal: mediatek: add support for MT8183")
Signed-off-by: Michael Kao <michael.kao@mediatek.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200323121537.22697-6-michael.kao@mediatek.com
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | drivers/thermal/mtk_thermal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c index acf4854cbb8b..d6fabd0a7da6 100644 --- a/drivers/thermal/mtk_thermal.c +++ b/drivers/thermal/mtk_thermal.c @@ -211,6 +211,9 @@ enum { /* The total number of temperature sensors in the MT8183 */ #define MT8183_NUM_SENSORS 6 +/* The number of banks in the MT8183 */ +#define MT8183_NUM_ZONES 1 + /* The number of sensing points per bank */ #define MT8183_NUM_SENSORS_PER_ZONE 6 @@ -498,7 +501,7 @@ static const struct mtk_thermal_data mt7622_thermal_data = { static const struct mtk_thermal_data mt8183_thermal_data = { .auxadc_channel = MT8183_TEMP_AUXADC_CHANNEL, - .num_banks = MT8183_NUM_SENSORS_PER_ZONE, + .num_banks = MT8183_NUM_ZONES, .num_sensors = MT8183_NUM_SENSORS, .vts_index = mt8183_vts_index, .cali_val = MT8183_CALIBRATION, |