thermal: devfreq_cooling: refactor code and add get_voltage function
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 4 May 2017 11:34:31 +0000 (12:34 +0100)
committerZhang Rui <rui.zhang@intel.com>
Fri, 5 May 2017 07:54:45 +0000 (15:54 +0800)
commite34cab4cd1f98b4daed5bc98fe727e63f8dbf4e4
tree0150fecad849ea961220d7002dedae0bbc672cb4
parent39da7c509acff13fc8cb12ec1bb20337c988ed36
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>
drivers/thermal/devfreq_cooling.c