]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: rtq6056: add i2c_device_id support
authorKevin Tung <kevin.tung.openbmc@gmail.com>
Mon, 20 Apr 2026 12:52:52 +0000 (20:52 +0800)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:23 +0000 (09:58 +0100)
commitce80292ead5bb42b50a6b63e44fd95c0edf9d334
treeb88c1104ac3692512ba10b042e4e468c253632ef
parentd01d624c28e77bc592ed8e1a9e817edec5826031
iio: adc: rtq6056: add i2c_device_id support

Add i2c_device_id table to support legacy I2C instantiation.
Update probe to use i2c_get_match_data() so device data can be
retrieved consistently for both OF and legacy I2C instantiation.

Signed-off-by: Kevin Tung <kevin.tung.openbmc@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/rtq6056.c