hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/hwmon/w83l785ts.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * w83l785ts.c - Part of lm_sensors, Linux kernel modules for hardware
34 * monitoring
....@@ -14,20 +15,6 @@
1415 *
1516 * Thanks to James Bolt <james@evilpenguin.com> for benchmarking the read
1617 * error handling mechanism.
17
- *
18
- * This program is free software; you can redistribute it and/or modify
19
- * it under the terms of the GNU General Public License as published by
20
- * the Free Software Foundation; either version 2 of the License, or
21
- * (at your option) any later version.
22
- *
23
- * This program is distributed in the hope that it will be useful,
24
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
- * GNU General Public License for more details.
27
- *
28
- * You should have received a copy of the GNU General Public License
29
- * along with this program; if not, write to the Free Software
30
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
3118 */
3219
3320 #include <linux/module.h>
....@@ -75,8 +62,7 @@
7562 * Functions declaration
7663 */
7764
78
-static int w83l785ts_probe(struct i2c_client *client,
79
- const struct i2c_device_id *id);
65
+static int w83l785ts_probe(struct i2c_client *client);
8066 static int w83l785ts_detect(struct i2c_client *client,
8167 struct i2c_board_info *info);
8268 static int w83l785ts_remove(struct i2c_client *client);
....@@ -98,7 +84,7 @@
9884 .driver = {
9985 .name = "w83l785ts",
10086 },
101
- .probe = w83l785ts_probe,
87
+ .probe_new = w83l785ts_probe,
10288 .remove = w83l785ts_remove,
10389 .id_table = w83l785ts_id,
10490 .detect = w83l785ts_detect,
....@@ -176,8 +162,7 @@
176162 return 0;
177163 }
178164
179
-static int w83l785ts_probe(struct i2c_client *client,
180
- const struct i2c_device_id *id)
165
+static int w83l785ts_probe(struct i2c_client *client)
181166 {
182167 struct w83l785ts_data *data;
183168 struct device *dev = &client->dev;