hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/thermal/samsung/exynos_tmu.c
....@@ -1,5 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3
+ * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit)
34 *
45 * Copyright (C) 2014 Samsung Electronics
56 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
....@@ -8,21 +9,6 @@
89 * Copyright (C) 2011 Samsung Electronics
910 * Donggeun Kim <dg77.kim@samsung.com>
1011 * Amit Daniel Kachhap <amit.kachhap@linaro.org>
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2 of the License, or
15
- * (at your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; if not, write to the Free Software
24
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
- *
2612 */
2713
2814 #include <linux/clk.h>
....@@ -152,7 +138,7 @@
152138
153139 /**
154140 * struct exynos_tmu_data : A structure to hold the private data of the TMU
155
- driver
141
+ * driver
156142 * @id: identifier of the one instance of the TMU controller.
157143 * @base: base address of the single instance of the TMU controller.
158144 * @base_second: base address of the common registers of the TMU controller.
....@@ -176,8 +162,11 @@
176162 * 0 < reference_voltage <= 31
177163 * @regulator: pointer to the TMU regulator structure.
178164 * @reg_conf: pointer to structure to register with core thermal.
165
+ * @tzd: pointer to thermal_zone_device structure
179166 * @ntrip: number of supported trip points.
180167 * @enabled: current status of TMU device
168
+ * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold)
169
+ * @tmu_set_trip_hyst: SoC specific to set hysteresis (falling threshold)
181170 * @tmu_initialize: SoC specific TMU initialization method
182171 * @tmu_control: SoC specific TMU control method
183172 * @tmu_read: SoC specific TMU temperature read method
....@@ -1106,7 +1095,9 @@
11061095 &exynos_sensor_ops);
11071096 if (IS_ERR(data->tzd)) {
11081097 ret = PTR_ERR(data->tzd);
1109
- dev_err(&pdev->dev, "Failed to register sensor: %d\n", ret);
1098
+ if (ret != -EPROBE_DEFER)
1099
+ dev_err(&pdev->dev, "Failed to register sensor: %d\n",
1100
+ ret);
11101101 goto err_sclk;
11111102 }
11121103
....@@ -1198,7 +1189,7 @@
11981189
11991190 module_platform_driver(exynos_tmu_driver);
12001191
1201
-MODULE_DESCRIPTION("EXYNOS TMU Driver");
1192
+MODULE_DESCRIPTION("Exynos TMU Driver");
12021193 MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>");
12031194 MODULE_LICENSE("GPL");
12041195 MODULE_ALIAS("platform:exynos-tmu");