exynos_tmu.c (bfa26838572cd9b2b0623fcbc7b9352dcaa4262b) | exynos_tmu.c (baba1ebb99ba1ffecfa40268d80e4e6406ef1d17) |
---|---|
1/* 2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit) 3 * 4 * Copyright (C) 2014 Samsung Electronics 5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> 6 * Lukasz Majewski <l.majewski@samsung.com> 7 * 8 * Copyright (C) 2011 Samsung Electronics --- 534 unchanged lines hidden (view full) --- 543 pdata->cal_type = TYPE_ONE_POINT_TRIMMING; 544 break; 545 case EXYNOS5433_TRIMINFO_TWO_POINT_TRIMMING: 546 pdata->cal_type = TYPE_TWO_POINT_TRIMMING; 547 break; 548 default: 549 pdata->cal_type = TYPE_ONE_POINT_TRIMMING; 550 break; | 1/* 2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit) 3 * 4 * Copyright (C) 2014 Samsung Electronics 5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> 6 * Lukasz Majewski <l.majewski@samsung.com> 7 * 8 * Copyright (C) 2011 Samsung Electronics --- 534 unchanged lines hidden (view full) --- 543 pdata->cal_type = TYPE_ONE_POINT_TRIMMING; 544 break; 545 case EXYNOS5433_TRIMINFO_TWO_POINT_TRIMMING: 546 pdata->cal_type = TYPE_TWO_POINT_TRIMMING; 547 break; 548 default: 549 pdata->cal_type = TYPE_ONE_POINT_TRIMMING; 550 break; |
551 }; | 551 } |
552 553 dev_info(&pdev->dev, "Calibration type is %d-point calibration\n", 554 cal_type ? 2 : 1); 555 556 /* Write temperature code for rising and falling threshold */ 557 for (i = 0; i < of_thermal_get_ntrips(tz); i++) { 558 int rising_reg_offset, falling_reg_offset; 559 int j = 0; --- 791 unchanged lines hidden (view full) --- 1351 if (ret) { 1352 dev_err(&pdev->dev, "Failed to enable sclk\n"); 1353 goto err_clk; 1354 } 1355 } 1356 break; 1357 default: 1358 break; | 552 553 dev_info(&pdev->dev, "Calibration type is %d-point calibration\n", 554 cal_type ? 2 : 1); 555 556 /* Write temperature code for rising and falling threshold */ 557 for (i = 0; i < of_thermal_get_ntrips(tz); i++) { 558 int rising_reg_offset, falling_reg_offset; 559 int j = 0; --- 791 unchanged lines hidden (view full) --- 1351 if (ret) { 1352 dev_err(&pdev->dev, "Failed to enable sclk\n"); 1353 goto err_clk; 1354 } 1355 } 1356 break; 1357 default: 1358 break; |
1359 }; | 1359 } |
1360 1361 /* 1362 * data->tzd must be registered before calling exynos_tmu_initialize(), 1363 * requesting irq and calling exynos_tmu_control(). 1364 */ 1365 data->tzd = thermal_zone_of_sensor_register(&pdev->dev, 0, data, 1366 &exynos_sensor_ops); 1367 if (IS_ERR(data->tzd)) { --- 97 unchanged lines hidden --- | 1360 1361 /* 1362 * data->tzd must be registered before calling exynos_tmu_initialize(), 1363 * requesting irq and calling exynos_tmu_control(). 1364 */ 1365 data->tzd = thermal_zone_of_sensor_register(&pdev->dev, 0, data, 1366 &exynos_sensor_ops); 1367 if (IS_ERR(data->tzd)) { --- 97 unchanged lines hidden --- |