]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (pmbus/ltc2978) Remove use of i2c_match_id()
authorAndrew Davis <afd@ti.com>
Fri, 6 Mar 2026 17:16:51 +0000 (11:16 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 31 Mar 2026 02:45:06 +0000 (19:45 -0700)
commit7e9d6299a2a952636af23cd8e9c8118f2e5efc22
treec962f1bd33599d841870e6ba6f23beb15c59a95f
parent6f0a5e6d52234043ffd01324cae1d5da87607b5b
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>
drivers/hwmon/pmbus/ltc2978.c