Re: [PATCH v3 2/4] iio: light: tsl2591: add I2C device ID table
From: Andy Shevchenko
Date: Thu Oct 22 2026 - 12:52:21 EST
On Thu, Oct 22, 2026 at 01:53:58PM +0200, Jan Remes wrote:
> The driver has only an OF match table. Devices instantiated by name
> (e.g. via the sysfs new_device interface or i2c_board_info) have no
> firmware node, so the I2C core can match them against an OF table only
> by comparing the name with the compatible strings, and it does that only
> when CONFIG_OF is enabled. Without CONFIG_OF such devices can be matched
> only through the I2C device ID table, so they never bind to this driver.
> Add an I2C device ID table so that they can be matched.
Please, squeeze this to the point.
Example:
"Allow driver to match devices assigned via sysfs or through board info
by adding a currently missing I²C ID table."
--
With Best Regards,
Andy Shevchenko