]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/hwmon/max6621.c
hwmon: use simple i2c probe function
[mirror_ubuntu-jammy-kernel.git] / drivers / hwmon / max6621.c
index a8bb5de142307d6f8ffe1d3e70245df975178f21..367855d5edaee36e83b00a8ca7ad6d5aea3fb714 100644 (file)
@@ -477,8 +477,7 @@ static const struct hwmon_chip_info max6621_chip_info = {
        .info = max6621_info,
 };
 
-static int max6621_probe(struct i2c_client *client,
-                        const struct i2c_device_id *id)
+static int max6621_probe(struct i2c_client *client)
 {
        struct device *dev = &client->dev;
        struct max6621_data *data;
@@ -555,7 +554,7 @@ static struct i2c_driver max6621_driver = {
                .name = MAX6621_DRV_NAME,
                .of_match_table = of_match_ptr(max6621_of_match),
        },
-       .probe          = max6621_probe,
+       .probe_new      = max6621_probe,
        .id_table       = max6621_id,
 };