hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/hwmon/adt7410.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ADT7410/ADT7420 digital temperature sensor driver
34 *
45 * Copyright 2012-2013 Analog Devices Inc.
56 * Author: Lars-Peter Clausen <lars@metafoo.de>
6
- *
7
- * Licensed under the GPL-2 or later.
87 */
98
109 #include <linux/module.h>
....@@ -40,8 +39,7 @@
4039 .write_byte = adt7410_i2c_write_byte,
4140 };
4241
43
-static int adt7410_i2c_probe(struct i2c_client *client,
44
- const struct i2c_device_id *id)
42
+static int adt7410_i2c_probe(struct i2c_client *client)
4543 {
4644 if (!i2c_check_functionality(client->adapter,
4745 I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA))
....@@ -68,7 +66,7 @@
6866 .name = "adt7410",
6967 .pm = ADT7X10_DEV_PM_OPS,
7068 },
71
- .probe = adt7410_i2c_probe,
69
+ .probe_new = adt7410_i2c_probe,
7270 .remove = adt7410_i2c_remove,
7371 .id_table = adt7410_ids,
7472 .address_list = I2C_ADDRS(0x48, 0x49, 0x4a, 0x4b),