]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iio: magnetometer: mmc35240: Add DT binding
authorJandy Gou <qingsong.gou@ck-telecom.com>
Fri, 17 Jul 2015 08:34:35 +0000 (16:34 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 09:55:28 +0000 (10:55 +0100)
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>
drivers/iio/magnetometer/mmc35240.c

index 7a2ea71c659a0162baf0591af149045c36224d1b..9bc542daa73229d49e531cdf7b8b7dafc8aa4f28 100644 (file)
@@ -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),
        },