Re: [PATCH] thermal: exynos: Remove duplicate code when reading triminfo register of Exynos5440
From: amit daniel kachhap <hidden>
Date: 2014-08-20 05:03:11
Also in:
linux-arm-kernel, linux-pm, linux-samsung-soc, lkml
On Wed, Aug 20, 2014 at 9:54 AM, Chanwoo Choi [off-list ref] wrote:
This patch remove simply duplicate code when reading triminfo register of Exynos5440. Signed-off-by: Chanwoo Choi <redacted> Acked-by: Kyungmin Park <redacted> Cc: Zhang Rui <redacted> Cc: Eduardo Valentin <redacted> Cc: Amit Daniel Kachhap <redacted>
Reviewed-by: Amit Daniel Kachhap <redacted> Thanks, Amit
quoted hunk ↗ jump to hunk
--- drivers/thermal/samsung/exynos_tmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index ed01606..13c2e01 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c@@ -181,15 +181,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) */ switch (data->id) { case 0: + case 2: trim_info = readl(data->base + EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); break; case 1: trim_info = readl(data->base + reg->triminfo_data); break; - case 2: - trim_info = readl(data->base - - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); } } else { /* On exynos5420 the triminfo register is in the shared space */ --1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
-- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html