From: Bartlomiej Zolnierkiewicz Date: Thu, 31 Jul 2014 17:11:03 +0000 (+0200) Subject: thermal: exynos: simplify temp_to_code() and code_to_temp() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~158^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb31d43cb20222f929b0d242bdb516de51b6c23;p=pandora-kernel.git thermal: exynos: simplify temp_to_code() and code_to_temp() * Remove dead temp check from temp_to_code() (this function users in exynos_tmu_initialize() always pass correct temperatures and exynos_tmu_set_emulation() returns early for EXYNOS4210 because TMU_SUPPORT_EMULATION flag is not set on this SoC). * Move temp_code check from code_to_temp() to exynos_tmu_read() (code_to_temp() only user). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Kyungmin Park Reviewed-by: Amit Daniel Kachhap Tested-by: Amit Daniel Kachhap Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed