thermal: devfreq_cooling: refactor code and add get_voltage function

Move the code which gets the voltage for a given frequency.
This code will be resused in few places.

Acked-by: Javi Merino <javi.merino@kernel.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
This commit is contained in:
Lukasz Luba 2017-05-04 12:34:31 +01:00 • committed by Zhang Rui
commit e34cab4cd1