thermal: armada: move validity check out of the read function
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Jul 2018 14:41:54 +0000 (16:41 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 27 Jul 2018 21:43:11 +0000 (14:43 -0700)
commit68b14828ca102630e721d10b2e5dedc9c9b38095
tree0deb8823eca89662b73722236290a2e2c5a82fba
parent00707e4c9618949d492f685c324326f39f08ea9c
thermal: armada: move validity check out of the read function

Sensor selection when using multiple sensors already checks for the
sensor validity. Move it to the legacy ->get_temp() hook, where it is
still needed.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c