hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/hwmon/pcf8591.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2001-2004 Aurelien Jarno <aurelien@aurel32.net>
34 * Ported to Linux 2.6 by Aurelien Jarno <aurelien@aurel32.net> with
45 * the help of Jean Delvare <jdelvare@suse.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
196 */
207
218 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -192,8 +179,7 @@
192179 * Real code
193180 */
194181
195
-static int pcf8591_probe(struct i2c_client *client,
196
- const struct i2c_device_id *id)
182
+static int pcf8591_probe(struct i2c_client *client)
197183 {
198184 struct pcf8591_data *data;
199185 int err;
....@@ -308,7 +294,7 @@
308294 .driver = {
309295 .name = "pcf8591",
310296 },
311
- .probe = pcf8591_probe,
297
+ .probe_new = pcf8591_probe,
312298 .remove = pcf8591_remove,
313299 .id_table = pcf8591_id,
314300 };