Commit 4a719f18 authored by Petre Rodan's avatar Petre Rodan Committed by Jonathan Cameron
Browse files

iio: accel: bma220: add open firmware table



Add open firmware entry to the spi driver.

Signed-off-by: default avatarPetre Rodan <petre.rodan@subdimension.ro>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent c785d980
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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,