diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-05-24 23:11:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-27 15:49:39 +0300 |
commit | b97ba92e2962b7ede713bc5b70dcf747083e45f9 (patch) | |
tree | 7cf51183372cd7adb34bd97cd61c6e2c4e83519f /drivers/misc/eeprom/ee1004.c | |
parent | 64bf274711c0ba973bb1907fd5119c0d06255e37 (diff) | |
download | linux-b97ba92e2962b7ede713bc5b70dcf747083e45f9.tar.xz |
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>
Diffstat (limited to 'drivers/misc/eeprom/ee1004.c')
-rw-r--r-- | drivers/misc/eeprom/ee1004.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/eeprom/ee1004.c b/drivers/misc/eeprom/ee1004.c index 2824dba76858..b991ab250456 100644 --- a/drivers/misc/eeprom/ee1004.c +++ b/drivers/misc/eeprom/ee1004.c @@ -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; |