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

From: hpp.iscas

Date: Sat Sep 05 2026 - 09:40:04 EST


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.

Fixes: bf2a5600a3eb ("iio: accel: Add support for Bosch BMA220")
Signed-off-by: hpp.iscas <hppiscas@xxxxxxx>
---
drivers/iio/accel/bma220_spi.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/iio/accel/bma220_spi.c b/drivers/iio/accel/bma220_spi.c
index d6c1087..13b156b 100644
--- a/drivers/iio/accel/bma220_spi.c
+++ b/drivers/iio/accel/bma220_spi.c
@@ -33,6 +33,7 @@ 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);

static const struct of_device_id bma220_of_spi_match[] = {