Re: [PATCH v2 2/4] iio: adc: ltc2309: Use i2c_get_match_data() helper
From: Andy Shevchenko
Date: Tue Mar 24 2026 - 08:46:10 EST
On Tue, Mar 24, 2026 at 03:13:29PM +0800, Carlos Jones Jr wrote:
> Convert the driver to use the i2c_get_match_data() helper function
> for retrieving chip-specific information. This simplifies device
> identification and aligns with modern kernel practices.
>
> Update both of_device_id and i2c_device_id tables to include
> chip_info data pointers. The device name is now sourced from
> chip_info to ensure proper identification in sysfs.
>
> No functional changes to existing LTC2309 behavior.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko