macintosh: convert to i2c_new_scanned_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 10 Feb 2020 17:04:01 +0000 (18:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 26 Mar 2020 11:36:20 +0000 (12:36 +0100)
Move from the deprecated i2c_new_probed_device() to the new
i2c_new_scanned_device(). No functional change for this driver because
it doesn't check the return code anyhow.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/therm_windtunnel.c

index a0d87ed9da69612224903eb192da987e3d5f5504..f55f6adf5e5ff77de90dcee8160a4853e58437b0 100644 (file)
@@ -323,7 +323,7 @@ static void do_attach(struct i2c_adapter *adapter)
                of_node_put(np);
        } else {
                strlcpy(info.type, "MAC,ds1775", I2C_NAME_SIZE);
-               i2c_new_probed_device(adapter, &info, scan_ds1775, NULL);
+               i2c_new_scanned_device(adapter, &info, scan_ds1775, NULL);
        }
 
        np = of_find_compatible_node(adapter->dev.of_node, NULL, "MAC,adm1030");
@@ -331,7 +331,7 @@ static void do_attach(struct i2c_adapter *adapter)
                of_node_put(np);
        } else {
                strlcpy(info.type, "MAC,adm1030", I2C_NAME_SIZE);
-               i2c_new_probed_device(adapter, &info, scan_adm1030, NULL);
+               i2c_new_scanned_device(adapter, &info, scan_adm1030, NULL);
        }
 }