diff options
| author | Andrew Davis <afd@ti.com> | 2026-03-06 20:16:51 +0300 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-03-31 05:45:06 +0300 |
| commit | 7e9d6299a2a952636af23cd8e9c8118f2e5efc22 (patch) | |
| tree | c962f1bd33599d841870e6ba6f23beb15c59a95f | |
| parent | 6f0a5e6d52234043ffd01324cae1d5da87607b5b (diff) | |
| download | linux-7e9d6299a2a952636af23cd8e9c8118f2e5efc22.tar.xz | |
hwmon: (pmbus/ltc2978) Remove use of i2c_match_id()
The function i2c_match_id() is used to fetch the matching ID from
the i2c_device_id table. This can instead be done with
i2c_client_get_device_id(). For this driver functionality should
not change. Switch over to remove the last couple users of the
i2c_match_id() function from kernel.
Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20260306171652.951274-11-afd@ti.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
| -rw-r--r-- | drivers/hwmon/pmbus/ltc2978.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/ltc2978.c b/drivers/hwmon/pmbus/ltc2978.c index 8f5be520a15d..d69a5e675e80 100644 --- a/drivers/hwmon/pmbus/ltc2978.c +++ b/drivers/hwmon/pmbus/ltc2978.c @@ -733,7 +733,7 @@ static int ltc2978_probe(struct i2c_client *client) return chip_id; data->id = chip_id; - id = i2c_match_id(ltc2978_id, client); + id = i2c_client_get_device_id(client); if (data->id != id->driver_data) dev_warn(&client->dev, "Device mismatch: Configured %s (%d), detected %d\n", |
