mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
thermal: exynos: set trips in ascending order in exynos7_tmu_initialize()
Set trips in ascending order in exynos7_tmu_initialize() (it should make no difference in driver operation). This prepares the driver code to moving trips setting from ->tmu_initialize method to exynos_tmu_initialize(). Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
ab1b7ada95
commit
0c1554a6d8
@ -618,7 +618,7 @@ static void exynos7_tmu_initialize(struct platform_device *pdev)
|
|||||||
sanitize_temp_error(data, trim_info);
|
sanitize_temp_error(data, trim_info);
|
||||||
|
|
||||||
/* Write temperature code for rising and falling threshold */
|
/* Write temperature code for rising and falling threshold */
|
||||||
for (i = (of_thermal_get_ntrips(tz) - 1); i >= 0; i--) {
|
for (i = 0; i < of_thermal_get_ntrips(tz); i++) {
|
||||||
tz->ops->get_trip_temp(tz, i, &temp);
|
tz->ops->get_trip_temp(tz, i, &temp);
|
||||||
temp /= MCELSIUS;
|
temp /= MCELSIUS;
|
||||||
exynos7_tmu_set_trip_temp(data, i, temp);
|
exynos7_tmu_set_trip_temp(data, i, temp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user