hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/hwmon/ltq-cputemp.c
....@@ -1,19 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* Lantiq cpu temperature sensor driver
23 *
34 * Copyright (C) 2017 Florian Eckert <fe@dev.tdt.de>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version
9
- *
10
- * This program is distributed in the hope that it will be useful
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>
175 */
186
197 #include <linux/bitops.h>
....@@ -77,29 +65,11 @@
7765 }
7866 }
7967
80
-static const u32 ltq_chip_config[] = {
81
- HWMON_C_REGISTER_TZ,
82
- 0
83
-};
84
-
85
-static const struct hwmon_channel_info ltq_chip = {
86
- .type = hwmon_chip,
87
- .config = ltq_chip_config,
88
-};
89
-
90
-static const u32 ltq_temp_config[] = {
91
- HWMON_T_INPUT,
92
- 0
93
-};
94
-
95
-static const struct hwmon_channel_info ltq_temp = {
96
- .type = hwmon_temp,
97
- .config = ltq_temp_config,
98
-};
99
-
10068 static const struct hwmon_channel_info *ltq_info[] = {
101
- &ltq_chip,
102
- &ltq_temp,
69
+ HWMON_CHANNEL_INFO(chip,
70
+ HWMON_C_REGISTER_TZ),
71
+ HWMON_CHANNEL_INFO(temp,
72
+ HWMON_T_INPUT),
10373 NULL
10474 };
10575