mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
thermal/drivers/mediatek: Fix bank number settings on mt8183
[ Upstream commit 14533a5a6c12e8d7de79d309d4085bf186058fe1 ]
MT8183_NUM_ZONES should be set to 1
because MT8183 doesn't have multiple banks.
Fixes: a4ffe6b52d ("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]
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
c9426817ea
commit
a65bde0010
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue