Commit 6d6c5e56 authored by Nishant Malpani's avatar Nishant Malpani Committed by Jonathan Cameron

iio: accel: dmard06: Use mod_devicetable.h and drop of_match_ptr macro

Enables ACPI DSDT to probe via PRP0001 and the compatible property.
Signed-off-by: default avatarNishant Malpani <nish.malpani25@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b101c93c
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/iio/iio.h> #include <linux/iio/iio.h>
...@@ -226,7 +227,7 @@ static struct i2c_driver dmard06_driver = { ...@@ -226,7 +227,7 @@ static struct i2c_driver dmard06_driver = {
.id_table = dmard06_id, .id_table = dmard06_id,
.driver = { .driver = {
.name = DMARD06_DRV_NAME, .name = DMARD06_DRV_NAME,
.of_match_table = of_match_ptr(dmard06_of_match), .of_match_table = dmard06_of_match,
.pm = DMARD06_PM_OPS, .pm = DMARD06_PM_OPS,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment