hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/hwmon/g760a.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * g760a - Driver for the Global Mixed-mode Technology Inc. G760A
34 * fan speed PWM controller chip
....@@ -6,11 +7,6 @@
67 *
78 * Complete datasheet is available at GMT's website:
89 * http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
1410 */
1511
1612 #include <linux/module.h>
....@@ -174,8 +170,7 @@
174170 * new-style driver model code
175171 */
176172
177
-static int g760a_probe(struct i2c_client *client,
178
- const struct i2c_device_id *id)
173
+static int g760a_probe(struct i2c_client *client)
179174 {
180175 struct device *dev = &client->dev;
181176 struct g760a_data *data;
....@@ -211,7 +206,7 @@
211206 .driver = {
212207 .name = "g760a",
213208 },
214
- .probe = g760a_probe,
209
+ .probe_new = g760a_probe,
215210 .id_table = g760a_id,
216211 };
217212