hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/hwmon/asc7621.c
....@@ -1,20 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * asc7621.c - Part of lm_sensors, Linux kernel modules for hardware monitoring
34 * Copyright (c) 2007, 2010 George Joseph <george.joseph@fairview5.com>
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, write to the Free Software
17
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
185 */
196
207 #include <linux/module.h>
....@@ -1100,7 +1087,7 @@
11001087 }
11011088
11021089 static int
1103
-asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id)
1090
+asc7621_probe(struct i2c_client *client)
11041091 {
11051092 struct asc7621_data *data;
11061093 int i, err;
....@@ -1206,7 +1193,7 @@
12061193 .driver = {
12071194 .name = "asc7621",
12081195 },
1209
- .probe = asc7621_probe,
1196
+ .probe_new = asc7621_probe,
12101197 .remove = asc7621_remove,
12111198 .id_table = asc7621_id,
12121199 .detect = asc7621_detect,