]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: mediatek: fix register index error
authorMichael Kao <michael.kao@mediatek.com>
Fri, 1 Feb 2019 07:38:07 +0000 (15:38 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 6 Feb 2019 01:01:35 +0000 (17:01 -0800)
commit2fa0b38b5287fc84000b215b3d3c62f09ce5a766
tree23f2a1b0f6f68df06b02dc626d3149fab51531fc
parenta2f148e33e767ed7a5e18207de0e6519f1a2c345
thermal: mediatek: fix register index error

The index of msr and adcpnp should match the sensor
which belongs to the selected bank in the for loop.

Fixes: 4d45e12764e7 ("thermal: Add Mediatek thermal driver for mt2701.")
Signed-off-by: Michael Kao <michael.kao@mediatek.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/mtk_thermal.c