[PATCH] I2C: Kill i2c_algorithm.id (3/7)
Don't rely on i2c_algorithm.id to alter the i2c adapter's id, use the I2C_ALGO_* value directly instead, because i2c_algorithm will soon have no id member no more. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e51cc6b3a3
commit
87c3d7a8bc
7 changed files with 7 additions and 7 deletions
|
@ -738,7 +738,7 @@ int i2c_iic_add_bus(struct i2c_adapter *adap)
|
|||
|
||||
/* register new adapter to i2c module... */
|
||||
|
||||
adap->id |= iic_algo.id;
|
||||
adap->id |= I2C_ALGO_IIC;
|
||||
adap->algo = &iic_algo;
|
||||
|
||||
adap->timeout = 100; /* default values, should */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue