]> 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)
commit31700040d136788fefd046a412e571859f551c90
tree23f2a1b0f6f68df06b02dc626d3149fab51531fc
parent80640de672527da2694a6ec77f89656b2edf1c17
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: f7f6f90a64b8 ("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