Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3ee7033 authored by Jean Delvare's avatar Jean Delvare
Browse files

i2c: Deprecate client_register and client_unregister methods



The new i2c binding model makes the client_register and
client_unregister methods of struct i2c_adapter useless, so we can
remove them with the rest of the legacy model.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 0221c81b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -354,7 +354,8 @@ Who: Krzysztof Piotr Oledzki <ole@ans.pl>


---------------------------
---------------------------


What:	i2c_attach_client(), i2c_detach_client(), i2c_driver->detach_client()
What:	i2c_attach_client(), i2c_detach_client(), i2c_driver->detach_client(),
	i2c_adapter->client_register(), i2c_adapter->client_unregister
When:	2.6.30
When:	2.6.30
Check:	i2c_attach_client i2c_detach_client
Check:	i2c_attach_client i2c_detach_client
Why:	Deprecated by the new (standard) device driver binding model. Use
Why:	Deprecated by the new (standard) device driver binding model. Use
+2 −2
Original line number Original line Diff line number Diff line
@@ -353,8 +353,8 @@ struct i2c_adapter {
	void *algo_data;
	void *algo_data;


	/* --- administration stuff. */
	/* --- administration stuff. */
	int (*client_register)(struct i2c_client *);
	int (*client_register)(struct i2c_client *) __deprecated;
	int (*client_unregister)(struct i2c_client *);
	int (*client_unregister)(struct i2c_client *) __deprecated;


	/* data fields that are valid for all devices	*/
	/* data fields that are valid for all devices	*/
	u8 level; 			/* nesting level for lockdep */
	u8 level; 			/* nesting level for lockdep */