Skip to content

Commit

Permalink
i2c: Deprecate client_register and client_unregister methods
Browse files Browse the repository at this point in the history
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: Jean Delvare <[email protected]>
  • Loading branch information
Jean Delvare committed Apr 6, 2009
1 parent 0221c81 commit e3ee703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ Who: Krzysztof Piotr Oledzki <[email protected]>

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

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
Check: i2c_attach_client i2c_detach_client
Why: Deprecated by the new (standard) device driver binding model. Use
Expand Down
4 changes: 2 additions & 2 deletions include/linux/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ struct i2c_adapter {
void *algo_data;

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

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

0 comments on commit e3ee703

Please sign in to comment.