eeprom: ee1004: Remove usage of i2c_adapter_id in adapter comparison
We can compare the adapter pointers directly instead of using i2c_adapter_id(). Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/99a3f94d-e7ca-e01d-6a78-81e109fde086@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
64bf274711
commit
b97ba92e29
@@ -199,8 +199,7 @@ static int ee1004_probe(struct i2c_client *client,
|
||||
goto err_clients;
|
||||
}
|
||||
}
|
||||
} else if (i2c_adapter_id(client->adapter) !=
|
||||
i2c_adapter_id(ee1004_set_page[0]->adapter)) {
|
||||
} else if (client->adapter != ee1004_set_page[0]->adapter) {
|
||||
dev_err(&client->dev,
|
||||
"Driver only supports devices on a single I2C bus\n");
|
||||
err = -EOPNOTSUPP;
|
||||
|
||||
Reference in New Issue
Block a user