Commit 3c1d1613 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent edb2c9dd
...@@ -2273,19 +2273,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap, ...@@ -2273,19 +2273,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap,
} }
EXPORT_SYMBOL_GPL(i2c_new_scanned_device); EXPORT_SYMBOL_GPL(i2c_new_scanned_device);
struct i2c_client *
i2c_new_probed_device(struct i2c_adapter *adap,
struct i2c_board_info *info,
unsigned short const *addr_list,
int (*probe)(struct i2c_adapter *adap, unsigned short addr))
{
struct i2c_client *client;
client = i2c_new_scanned_device(adap, info, addr_list, probe);
return IS_ERR(client) ? NULL : client;
}
EXPORT_SYMBOL_GPL(i2c_new_probed_device);
struct i2c_adapter *i2c_get_adapter(int nr) struct i2c_adapter *i2c_get_adapter(int nr)
{ {
struct i2c_adapter *adapter; struct i2c_adapter *adapter;
......
...@@ -461,12 +461,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap, ...@@ -461,12 +461,6 @@ i2c_new_scanned_device(struct i2c_adapter *adap,
unsigned short const *addr_list, unsigned short const *addr_list,
int (*probe)(struct i2c_adapter *adap, unsigned short addr)); int (*probe)(struct i2c_adapter *adap, unsigned short addr));
struct i2c_client *
i2c_new_probed_device(struct i2c_adapter *adap,
struct i2c_board_info *info,
unsigned short const *addr_list,
int (*probe)(struct i2c_adapter *adap, unsigned short addr));
/* Common custom probe functions */ /* Common custom probe functions */
int i2c_probe_func_quick_read(struct i2c_adapter *adap, unsigned short addr); int i2c_probe_func_quick_read(struct i2c_adapter *adap, unsigned short addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment