hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/hwmon/atxp1.c
....@@ -1,20 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * atxp1.c - kernel module for setting CPU VID and general purpose
34 * I/Os using the Attansic ATXP1 chip.
45 *
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
- *
156 * The ATXP1 can reside on I2C addresses 0x37 or 0x4e. The chip is
167 * not auto-detected by the driver and must be instantiated explicitly.
17
- * See Documentation/i2c/instantiating-devices for more information.
8
+ * See Documentation/i2c/instantiating-devices.rst for more information.
189 */
1910
2011 #include <linux/kernel.h>
....@@ -253,8 +244,7 @@
253244 };
254245 ATTRIBUTE_GROUPS(atxp1);
255246
256
-static int atxp1_probe(struct i2c_client *client,
257
- const struct i2c_device_id *id)
247
+static int atxp1_probe(struct i2c_client *client)
258248 {
259249 struct device *dev = &client->dev;
260250 struct atxp1_data *data;
....@@ -297,7 +287,7 @@
297287 .driver = {
298288 .name = "atxp1",
299289 },
300
- .probe = atxp1_probe,
290
+ .probe_new = atxp1_probe,
301291 .id_table = atxp1_id,
302292 };
303293