All in-tree users have been converted to the new i2c_new_scanned_device function, so remove this deprecated one.
Unified · Split
| @@ -2273,19 +2273,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap, · 2272 unmodified lines | ||
| 2273 | 2273 | } |
| 2274 | 2274 | EXPORT_SYMBOL_GPL(i2c_new_scanned_device); |
| 2275 | 2275 | |
| 2276 | −struct i2c_client * | |
| 2277 | −i2c_new_probed_device(struct i2c_adapter *adap, | |
| 2278 | − struct i2c_board_info *info, | |
| 2279 | − unsigned short const *addr_list, | |
| 2280 | − int (*probe)(struct i2c_adapter *adap, unsigned short addr)) | |
| 2281 | −{ | |
| 2282 | − struct i2c_client *client; | |
| 2283 | − | |
| 2284 | − client = i2c_new_scanned_device(adap, info, addr_list, probe); | |
| 2285 | − return IS_ERR(client) ? NULL : client; | |
| 2286 | −} | |
| 2287 | −EXPORT_SYMBOL_GPL(i2c_new_probed_device); | |
| 2288 | − | |
| 2289 | 2276 | struct i2c_adapter *i2c_get_adapter(int nr) |
| 2290 | 2277 | { |
| 2291 | 2278 | struct i2c_adapter *adapter; |
| @@ -461,12 +461,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap, · 460 unmodified lines | ||
| 461 | 461 | unsigned short const *addr_list, |
| 462 | 462 | int (*probe)(struct i2c_adapter *adap, unsigned short addr)); |
| 463 | 463 | |
| 464 | −struct i2c_client * | |
| 465 | −i2c_new_probed_device(struct i2c_adapter *adap, | |
| 466 | − struct i2c_board_info *info, | |
| 467 | − unsigned short const *addr_list, | |
| 468 | − int (*probe)(struct i2c_adapter *adap, unsigned short addr)); | |
| 469 | − | |
| 470 | 464 | /* Common custom probe functions */ |
| 471 | 465 | int i2c_probe_func_quick_read(struct i2c_adapter *adap, unsigned short addr); |
| 472 | 466 | |