iio: gyro: bmg160: add device tree compatibility table
Add of_match_table. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
2b0d1c6f12
commit
94bceb3cf5
|
@ -54,10 +54,19 @@ static const struct i2c_device_id bmg160_i2c_id[] = {
|
|||
|
||||
MODULE_DEVICE_TABLE(i2c, bmg160_i2c_id);
|
||||
|
||||
static const struct of_device_id bmg160_of_match[] = {
|
||||
{ .compatible = "bosch,bmg160" },
|
||||
{ .compatible = "bosch,bmi055_gyro" },
|
||||
{ }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(of, bmg160_of_match);
|
||||
|
||||
static struct i2c_driver bmg160_i2c_driver = {
|
||||
.driver = {
|
||||
.name = "bmg160_i2c",
|
||||
.acpi_match_table = ACPI_PTR(bmg160_acpi_match),
|
||||
.of_match_table = bmg160_of_match,
|
||||
.pm = &bmg160_pm_ops,
|
||||
},
|
||||
.probe = bmg160_i2c_probe,
|
||||
|
|
Loading…
Reference in New Issue