Skip to content

Commit 624d1be

Browse files
Wolfram SangWolfram Sang
authored andcommitted
macintosh: convert to i2c_new_scanned_device
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]>
1 parent 6d7e0a3 commit 624d1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/macintosh/therm_windtunnel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,15 @@ static void do_attach(struct i2c_adapter *adapter)
323323
of_node_put(np);
324324
} else {
325325
strlcpy(info.type, "MAC,ds1775", I2C_NAME_SIZE);
326-
i2c_new_probed_device(adapter, &info, scan_ds1775, NULL);
326+
i2c_new_scanned_device(adapter, &info, scan_ds1775, NULL);
327327
}
328328

329329
np = of_find_compatible_node(adapter->dev.of_node, NULL, "MAC,adm1030");
330330
if (np) {
331331
of_node_put(np);
332332
} else {
333333
strlcpy(info.type, "MAC,adm1030", I2C_NAME_SIZE);
334-
i2c_new_probed_device(adapter, &info, scan_adm1030, NULL);
334+
i2c_new_scanned_device(adapter, &info, scan_adm1030, NULL);
335335
}
336336
}
337337

0 commit comments

Comments
 (0)