Skip to content

Commit 3c1d161

Browse files
Wolfram SangWolfram Sang
authored andcommitted
i2c: remove i2c_new_probed_device API
All in-tree users have been converted to the new i2c_new_scanned_device function, so remove this deprecated one. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent edb2c9d commit 3c1d161

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

drivers/i2c/i2c-core-base.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,19 +2273,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap,
22732273
}
22742274
EXPORT_SYMBOL_GPL(i2c_new_scanned_device);
22752275

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-
22892276
struct i2c_adapter *i2c_get_adapter(int nr)
22902277
{
22912278
struct i2c_adapter *adapter;

include/linux/i2c.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap,
461461
unsigned short const *addr_list,
462462
int (*probe)(struct i2c_adapter *adap, unsigned short addr));
463463

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-
470464
/* Common custom probe functions */
471465
int i2c_probe_func_quick_read(struct i2c_adapter *adap, unsigned short addr);
472466

0 commit comments

Comments
 (0)