thermal: Create check_for_thermal_zones() function

Create a function to check for thermal zones as
an attempt to remove some redundant code.

Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
5 files changed