Re: [PATCH 2/4] iio: light: tsl2591: add I2C device ID table
From: Andy Shevchenko
Date: Tue Oct 13 2026 - 14:25:30 EST
On Tue, Oct 13, 2026 at 04:39:41PM +0200, Jan Remes wrote:
> The TSL2591 has only the device-tree matching table, so it cannot be
> probed on a kernel with CONFIG_OF disabled.
>
> Add I2C device ID table so that the sensor can be probed.
...
> +static const struct i2c_device_id tsl2591_id[] = {
> + { "tsl2591" },
Use C99 initialisers.
> + { }
> +};
> +MODULE_DEVICE_TABLE(i2c, tsl2591_id);
--
With Best Regards,
Andy Shevchenko