Re: [PATCH] iio: imu: inv_icm45600: Use I2C match data

From: Andy Shevchenko

Date: Wed Jun 24 2026 - 07:13:30 EST


On Wed, Jun 24, 2026 at 01:38:23PM +0800, Pengpeng Hou wrote:
> The I2C driver provides chip_info through both the OF match table and
> the I2C id table, but probe reads it with device_get_match_data(). That
> misses id-table driver_data for non-firmware I2C matches and can reject
> a supported device with -ENODEV.
>
> Use i2c_get_match_data() so the id-table chip_info is used when firmware
> match data is not present.

Currently there is no problem with that. But in principle I agree with
the change. Also it makes it on par with SPI glue driver.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko