thermal: mediatek: fix register index error
authorMichael Kao <michael.kao@mediatek.com>
Fri, 1 Feb 2019 07:38:07 +0000 (15:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:46:17 +0000 (14:46 +0100)
commit032c10fb504cf15575a69e2f7e673c72c720ade7
treeb7e7edfd57c758c2279d664bcaef66c84936b418
parent7d7e9d2378899ee8e7abf8b74561d18958739042
thermal: mediatek: fix register index error

[ Upstream commit eb9aecd90d1a39601e91cd08b90d5fee51d321a6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/mtk_thermal.c