From: Petre Rodan Date: Sun, 5 Oct 2025 13:12:17 +0000 (+0300) Subject: iio: accel: bma220: add open firmware table X-Git-Tag: v6.19-rc1~65^2~58^2~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a719f182674d30f060dde7414ba7d265fb0388c;p=thirdparty%2Fkernel%2Flinux.git iio: accel: bma220: add open firmware table Add open firmware entry to the spi driver. Signed-off-by: Petre Rodan Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/accel/bma220_spi.c b/drivers/iio/accel/bma220_spi.c index 761f475a59425..e1c25f48d9b39 100644 --- a/drivers/iio/accel/bma220_spi.c +++ b/drivers/iio/accel/bma220_spi.c @@ -28,10 +28,17 @@ static const struct acpi_device_id bma220_acpi_id[] = { }; MODULE_DEVICE_TABLE(spi, bma220_spi_id); +static const struct of_device_id bma220_of_spi_match[] = { + { .compatible = "bosch,bma220" }, + { } +}; +MODULE_DEVICE_TABLE(of, bma220_of_spi_match); + static struct spi_driver bma220_spi_driver = { .driver = { .name = "bma220_spi", .pm = pm_sleep_ptr(&bma220_pm_ops), + .of_match_table = bma220_of_spi_match, .acpi_match_table = bma220_acpi_id, }, .probe = bma220_spi_probe,