i2c: remove i2c_new_dummy() API
PATCH 1/1 i2c: remove i2c_new_dummy() API
All in-kernel users have been converted to {devm_}i2c_new_dummy_device(). Remove the old API.
--- drivers/i2c/i2c-core-base.c | 23 ----------------------- include/linux/i2c.h | 6 ------ 2 files changed, 29 deletions(-)
drivers/i2c/i2c-core-base.c +0 -23
@@ -896,29 +896,6 @@ struct i2c_client *i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address }EXPORT_SYMBOL_GPL (i2c_new_dummy_device); -/** -* i2c_new_dummy - return a new i2c device bound to a dummy driver -* @adapter: the adapter managing the device -* @address: seven bit address to be used -* Context: can sleep -* -* This deprecated function has the same functionality as @i2c_new_dummy_device, -* it just returns NULL instead of an ERR_PTR in case of an error for -* compatibility with current I2C API. It will be removed once all users are -* converted. -* -* This returns the new i2c client, which should be saved for later use with -* i2c_unregister_device(); or NULL to indicate an error. -*/ -struct i2c_client *i2c_new_dummy (struct i2c_adapter *adapter,u16 address) -{ -struct i2c_client *ret; - - ret =i2c_new_dummy_device (adapter, address); -return IS_ERR (ret) ?NULL : ret; -} -EXPORT_SYMBOL_GPL (i2c_new_dummy); -struct i2c_dummy_devres {struct i2c_client *client; };
include/linux/i2c.h +0 -6
@@ -466,12 +466,6 @@ i2c_new_probed_device(struct i2c_adapter *adap,/* Common custom probe functions */ extern int i2c_probe_func_quick_read (struct i2c_adapter *adap,unsigned short addr); -/* For devices that use several addresses, use i2c_new_dummy() to make -* client handles for the extra addresses. -*/ -extern struct i2c_client * -i2c_new_dummy (struct i2c_adapter *adap,u16 address); -extern struct i2c_client *i2c_new_dummy_device (struct i2c_adapter *adapter,u16 address);
Signature · 1 line
2.20.1
Hi Wolfram,
Thanks for your work.
Quoted 4 lines · Wolfram Sang
All in-kernel users have been converted to {devm_}i2c_new_dummy_device(). Remove the old API.
Signed-off-by Wolfram Sang <[email protected]>
Quoted 59 lines
--- drivers/i2c/i2c-core-base.c | 23 ----------------------- include/linux/i2c.h | 6 ------ 2 files changed, 29 deletions(-)drivers/i2c/i2c-core-base.c +0
-23@@ -896,29 +896,6 @@ struct i2c_client *i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address }EXPORT_SYMBOL_GPL (i2c_new_dummy_device); -/** -* i2c_new_dummy - return a new i2c device bound to a dummy driver -* @adapter: the adapter managing the device -* @address: seven bit address to be used -* Context: can sleep -* -* This deprecated function has the same functionality as @i2c_new_dummy_device, -* it just returns NULL instead of an ERR_PTR in case of an error for -* compatibility with current I2C API. It will be removed once all users are -* converted. -* -* This returns the new i2c client, which should be saved for later use with -* i2c_unregister_device(); or NULL to indicate an error. -*/ -struct i2c_client *i2c_new_dummy (struct i2c_adapter *adapter,u16 address) -{ -struct i2c_client *ret; - - ret =i2c_new_dummy_device (adapter, address); -return IS_ERR (ret) ?NULL : ret; -} -EXPORT_SYMBOL_GPL (i2c_new_dummy); -struct i2c_dummy_devres {struct i2c_client *client; };include/linux/i2c.h +0
-6@@ -466,12 +466,6 @@ i2c_new_probed_device(struct i2c_adapter *adap,/* Common custom probe functions */ extern int i2c_probe_func_quick_read (struct i2c_adapter *adap,unsigned short addr); -/* For devices that use several addresses, use i2c_new_dummy() to make -* client handles for the extra addresses. -*/ -extern struct i2c_client * -i2c_new_dummy (struct i2c_adapter *adap,u16 address); -extern struct i2c_client *i2c_new_dummy_device (struct i2c_adapter *adapter,u16 address);Signature · 1 line
2.20.1
Signature · 2 lines
Regards, Niklas Söderlund
Hi Wolfram,
Quoted 4 lines · Wolfram Sang
All in-kernel users have been converted to {devm_}i2c_new_dummy_device(). Remove the old API.
Signed-off-by Wolfram Sang <[email protected]>
Signature · 1 line
Luca
Wolfram Sang
AppliedQuoted 4 lines · Wolfram Sang
All in-kernel users have been converted to {devm_}i2c_new_dummy_device(). Remove the old API.
Signed-off-by Wolfram Sang <[email protected]>
Applied to for-current, thanks!
Patchwork summary for: linux-renesas-soc
In reply to Wolfram SangThe following patches were marked "accepted", because they were applied to geert/renesas-devel (refs/heads/master):
Hello:
The following patches were marked "accepted", because they were applied to geert/renesas-devel (refs/heads/master):
Patch: i2c: remove i2c_new_dummy() API
Submitter: Wolfram Sang <[email protected]>
Patchwork: https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=212557
Total patches: 1
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/userdoc/pwbot