hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/hwmon/w83l786ng.c
....@@ -1,20 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * w83l786ng.c - Linux kernel driver for hardware monitoring
34 * Copyright (c) 2007 Kevin Lo <kevlo@kevlo.org>
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 - version 2.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, write to the Free Software
16
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
- * 02110-1301 USA.
185 */
196
207 /*
....@@ -719,7 +706,7 @@
719706 }
720707
721708 static int
722
-w83l786ng_probe(struct i2c_client *client, const struct i2c_device_id *id)
709
+w83l786ng_probe(struct i2c_client *client)
723710 {
724711 struct device *dev = &client->dev;
725712 struct w83l786ng_data *data;
....@@ -765,7 +752,7 @@
765752 .driver = {
766753 .name = "w83l786ng",
767754 },
768
- .probe = w83l786ng_probe,
755
+ .probe_new = w83l786ng_probe,
769756 .id_table = w83l786ng_id,
770757 .detect = w83l786ng_detect,
771758 .address_list = normal_i2c,