]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
i2c: Deprecate client_register and client_unregister methods
authorJean Delvare <khali@linux-fr.org>
Mon, 6 Apr 2009 16:12:24 +0000 (18:12 +0200)
committerJean Delvare <khali@linux-fr.org>
Mon, 6 Apr 2009 16:12:24 +0000 (18:12 +0200)
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 <khali@linux-fr.org>
Documentation/feature-removal-schedule.txt
include/linux/i2c.h

index 39246fc11257af2c68402aa1ad5192e530e4f618..7e2af10e82645570a7ad426bc3e73ea3b6497ea7 100644 (file)
@@ -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
 Check: i2c_attach_client i2c_detach_client
 Why:   Deprecated by the new (standard) device driver binding model. Use
index c86c3b07604c2cf46cd492ef948e826f2d9c58d0..00ee11eb9092994aa7317dcf7d24ec1357a48c09 100644 (file)
@@ -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 */