summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorJandy Gou <qingsong.gou@ck-telecom.com>2015-07-17 16:34:35 +0800
committerJonathan Cameron <jic23@kernel.org>2015-07-19 10:55:28 +0100
commit7dbf1ea8aade8c3b2759acc96e5e709016e6ae28 (patch)
tree05b69aa4b6283db5172c866390fdaf555f72b1ba /drivers/iio/magnetometer
parent23633314e60796f860d5a0484b722557061cde7c (diff)
downloadtalos-obmc-linux-7dbf1ea8aade8c3b2759acc96e5e709016e6ae28.tar.gz
talos-obmc-linux-7dbf1ea8aade8c3b2759acc96e5e709016e6ae28.zip
iio: magnetometer: mmc35240: Add DT binding
Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/mmc35240.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
index 7a2ea71c659a..9bc542daa732 100644
--- a/drivers/iio/magnetometer/mmc35240.c
+++ b/drivers/iio/magnetometer/mmc35240.c
@@ -550,6 +550,12 @@ static const struct dev_pm_ops mmc35240_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume)
};
+static const struct of_device_id mmc35240_of_match[] = {
+ { .compatible = "memsic,mmc35240", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, mmc35240_of_match);
+
static const struct acpi_device_id mmc35240_acpi_match[] = {
{"MMC35240", 0},
{ },
@@ -565,6 +571,7 @@ MODULE_DEVICE_TABLE(i2c, mmc35240_id);
static struct i2c_driver mmc35240_driver = {
.driver = {
.name = MMC35240_DRV_NAME,
+ .of_match_table = mmc35240_of_match,
.pm = &mmc35240_pm_ops,
.acpi_match_table = ACPI_PTR(mmc35240_acpi_match),
},
OpenPOWER on IntegriCloud