Commit e1e18ee1 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

i2c: Mark as deprecated

It's about time to make it clear that is deprecated.
Hopefully this will remind the last user to move over to a different
Signed-off-by: default avatarJean Delvare <>
Acked-by: default avatarJarod Wilson <>
Acked-by: default avatarMauro Carvalho Chehab <>
Acked-by: default avatarHans Verkuil <>
parent f3dc65da
......@@ -554,3 +554,13 @@ Why: This is a legacy interface which have been replaced by a more
Who: NeilBrown <>
When: June 2011
Why: This field is deprecated. I2C device drivers shouldn't change their
behavior based on the underlying I2C adapter. Instead, the I2C
adapter driver should instantiate the I2C devices and provide the
needed platform-specific information.
Who: Jean Delvare <>
......@@ -120,7 +120,6 @@ struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent,
snprintf(priv->, sizeof(priv->,
"i2c-%d-mux (chan_id %d)", i2c_adapter_id(parent), chan_id);
priv->adap.owner = THIS_MODULE;
priv-> = parent->id;
priv->adap.algo = &priv->algo;
priv->adap.algo_data = priv;
priv-> = &parent->dev;
......@@ -353,7 +353,7 @@ struct i2c_algorithm {
struct i2c_adapter {
struct module *owner;
unsigned int id;
unsigned int id __deprecated;
unsigned int class; /* classes to allow probing for */
const struct i2c_algorithm *algo; /* the algorithm to access the bus */
void *algo_data;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment