Skip to content

Commit

Permalink
macintosh: convert to i2c_new_scanned_device
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Michael Ellerman <[email protected]>
  • Loading branch information
Wolfram Sang authored and Wolfram Sang committed Mar 26, 2020
1 parent 6d7e0a3 commit 624d1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/macintosh/therm_windtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,15 @@ 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");
if (np) {
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);
}
}

Expand Down

0 comments on commit 624d1be

Please sign in to comment.