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

From: Joshua Crofts

Date: Wed Jun 24 2026 - 02:56:32 EST


On Wed, 24 Jun 2026 13:38:23 +0800
Pengpeng Hou <pengpeng@xxxxxxxxxxx> 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.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> ---

Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>

--
Kind regards

CJD