linux_old1/drivers/thermal/samsung
Bartlomiej Zolnierkiewicz 8131a24660 thermal: exynos: remove redundant threshold_code checks from exynos_tmu_initialize()
Remove runtime checks for negative return values of temp_to_code()
from exynos_tmu_initialize().

The current level temperature data hardcoded in pdata will never
cause a negative temp_to_code() return values and checking itself
is not proper.  The checks in question are done at runtime in
a production code for data that is hardcoded inside driver during
development time and later it doesn't change.  Such data should
be verified during development and review time (i.e. by a script
parsing relevant data from exynos_tmu_data.c, one can also argue
that verification to be done is so simple that the review by
a maintainer should be enough).

Theres should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2014-11-02 23:02:47 -04:00
..
Kconfig thermal: exynos: Clean up non-DT remnants 2013-08-29 09:37:31 -04:00
Makefile thermal: exynos: Bifurcate exynos tmu driver and configuration data 2013-08-13 09:52:00 -04:00
exynos_thermal_common.c thermal:samsung: fix compilation warning 2014-01-02 10:05:04 +08:00
exynos_thermal_common.h thermal: exynos: remove redundant pdata checks from exynos_tmu_initialize() 2014-11-02 23:02:47 -04:00
exynos_tmu.c thermal: exynos: remove redundant threshold_code checks from exynos_tmu_initialize() 2014-11-02 23:02:47 -04:00
exynos_tmu.h thermal: exynos: remove dead code for HW_MODE calibration 2014-11-02 23:02:47 -04:00
exynos_tmu_data.c thermal: exynos: remove dead code for HW_MODE calibration 2014-11-02 23:02:47 -04:00
exynos_tmu_data.h thermal: exynos: remove dead code for HW_MODE calibration 2014-11-02 23:02:47 -04:00