power: exynos-tmu: fix warnings and clean up code
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Fri, 5 Apr 2013 22:21:38 +0000 (15:21 -0700)
committerChanho Park <chanho61.park@samsung.com>
Mon, 11 Apr 2016 03:53:14 +0000 (12:53 +0900)
commit235c3eea9697f4936649029b98188561e7ad685e
treecc443669c291920299a536a59c58092d0ddf42eb
parent76fafe58fc1b22351f6df331c9aa8cbe0b752b80
power: exynos-tmu: fix warnings and clean up code

This patch does the folowing
1. change the data types for unsigned int variable to unsigned
2. change the tmu_base type to struct exynos5_tmu_reg *
3. Add timer functionality for get_cur_temp()
4. error handling in the get_tmu_fdt_values()
5. Add check for curr_temp reading
6. some cosmotic changes.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/include/asm/arch-exynos/tmu.h
drivers/power/exynos-tmu.c