forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/hwmon/g762.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed
34 * PWM controller chips from G762 family, i.e. G762 and G763
....@@ -24,20 +25,6 @@
2425 *
2526 * g762: minimal datasheet available at:
2627 * http://www.gmt.com.tw/product/datasheet/EDS-762_3.pdf
27
- *
28
- * This program is free software; you can redistribute it and/or modify
29
- * it under the terms of the GNU General Public License as published by
30
- * the Free Software Foundation; either version 2 of the License, or
31
- * (at your option) any later version.
32
- *
33
- * This program is distributed in the hope that it will be useful,
34
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
35
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
- * GNU General Public License for more details.
37
- *
38
- * You should have received a copy of the GNU General Public License
39
- * along with this program; if not, write to the Free Software
40
- * Foundation.
4128 */
4229
4330 #include <linux/device.h>
....@@ -1046,7 +1033,7 @@
10461033 data->fan_cmd1);
10471034 }
10481035
1049
-static int g762_probe(struct i2c_client *client, const struct i2c_device_id *id)
1036
+static int g762_probe(struct i2c_client *client)
10501037 {
10511038 struct device *dev = &client->dev;
10521039 struct device *hwmon_dev;
....@@ -1092,7 +1079,7 @@
10921079 .name = DRVNAME,
10931080 .of_match_table = of_match_ptr(g762_dt_match),
10941081 },
1095
- .probe = g762_probe,
1082
+ .probe_new = g762_probe,
10961083 .id_table = g762_id,
10971084 };
10981085