Re: [PATCH] iio: accel: bma220: Publish the SPI driver's ACPI alias

From: Andy Shevchenko

Date: Tue Sep 08 2026 - 06:50:39 EST


On Sat, Sep 05, 2026 at 09:39:01PM +0800, hpp.iscas wrote:
> The BMA220 SPI driver registers an ACPI match table containing BMA0220,
> but exports only its SPI and OF tables. SPI devices with an ACPI
> companion emit an ACPI modalias, which neither existing table covers.
>
> Publish the ACPI table without changing either of the other matches.

...

> static const struct acpi_device_id bma220_acpi_id[] = {

> { "BMA0220", 0 },
> { }
> };
> +MODULE_DEVICE_TABLE(acpi, bma220_acpi_id);

> MODULE_DEVICE_TABLE(spi, bma220_spi_id);

Ouch! This one needs to be moved closer to the respective (SPI) ID table
definition.

> static const struct of_device_id bma220_of_spi_match[] = {

--
With Best Regards,
Andy Shevchenko