[PATCH] I2C: Kill i2c_algorithm.id (5/7)
Merge the algorithm id part (16 upper bits) of the i2c adapters ids into the definition of the adapters ids directly. After that, we don't need to OR both ids together for each i2c_adapter structure. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
1d8b9e1bad
commit
c7a46533ff
@@ -1271,7 +1271,7 @@ ERROR0:;
|
||||
}
|
||||
|
||||
static int maven_attach_adapter(struct i2c_adapter* adapter) {
|
||||
if (adapter->id == (I2C_ALGO_BIT | I2C_HW_B_G400))
|
||||
if (adapter->id == I2C_HW_B_G400)
|
||||
return i2c_probe(adapter, &addr_data, &maven_detect_client);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user