OSDN Git Service

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)
commiteb9aecd90d1a39601e91cd08b90d5fee51d321a6
tree23f2a1b0f6f68df06b02dc626d3149fab51531fc
parent7797ff424818c975b59c35880dbc90fe08350204
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: b7cf0053738c ("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