OSDN Git Service

thermal: armada: get rid of the ->is_valid() pointer
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Jul 2018 14:41:55 +0000 (16:41 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 27 Jul 2018 21:43:12 +0000 (14:43 -0700)
commit8c0e64ac4075b7ca870098ed2ad6089868f5fa7b
treeed337502c26bd267c582995cc4fc0dcd9ebdcee9
parent68b14828ca102630e721d10b2e5dedc9c9b38095
thermal: armada: get rid of the ->is_valid() pointer

The implementation of armada_is_valid() is very simple and is the same
across all the versions of the IP since the ->is_valid_bit has been
introduced. Simplify the structure by getting rid of the function
pointer and calling directly the function.

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