diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-09 08:16:44 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-04-02 07:03:28 +0200 |
commit | 19baba4cb6843bbe3dfde87e1e913f6a9cd27da9 (patch) | |
tree | ee31c87c789cf205102678193d4c4fc06c14783b /include | |
parent | 600abeadf318fbdb25e1e3e4379f6a7bb1952d5b (diff) | |
download | op-kernel-dev-19baba4cb6843bbe3dfde87e1e913f6a9cd27da9.zip op-kernel-dev-19baba4cb6843bbe3dfde87e1e913f6a9cd27da9.tar.gz |
i2c: Remove detach_adapter
The detach_adapter callback has been deprecated for quite some time and has no
user left. Keeping it alive blocks other cleanups, so remove it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 2eca386..f2bcd46 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -125,7 +125,6 @@ extern s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client, * struct i2c_driver - represent an I2C device driver * @class: What kind of i2c device we instantiate (for detect) * @attach_adapter: Callback for bus addition (deprecated) - * @detach_adapter: Callback for bus removal (deprecated) * @probe: Callback for device binding * @remove: Callback for device unbinding * @shutdown: Callback for device shutdown @@ -162,12 +161,10 @@ extern s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client, struct i2c_driver { unsigned int class; - /* Notifies the driver that a new bus has appeared or is about to be - * removed. You should avoid using this, it will be removed in a - * near future. + /* Notifies the driver that a new bus has appeared. You should avoid + * using this, it will be removed in a near future. */ int (*attach_adapter)(struct i2c_adapter *) __deprecated; - int (*detach_adapter)(struct i2c_adapter *) __deprecated; /* Standard driver model interfaces */ int (*probe)(struct i2c_client *, const struct i2c_device_id *); |