mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
iio: accel: bma220: add open firmware table
Add open firmware entry to the spi driver. Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
c785d9803b
commit
4a719f1826
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user