Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757097AbbGQImt (ORCPT ); Fri, 17 Jul 2015 04:42:49 -0400 Received: from m50-212.qiye.163.com ([123.125.50.212]:53478 "EHLO m50-212.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbbGQImq (ORCPT ); Fri, 17 Jul 2015 04:42:46 -0400 X-Greylist: delayed 320 seconds by postgrey-1.27 at vger.kernel.org; Fri, 17 Jul 2015 04:42:45 EDT From: Jandy Gou To: jic23@kernel.org Cc: daniel.baluta@intel.com, viorel.suman@intel.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jandy Gou Subject: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding Date: Fri, 17 Jul 2015 16:34:35 +0800 Message-Id: <1437122076-29816-2-git-send-email-qingsong.gou@ck-telecom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437122076-29816-1-git-send-email-qingsong.gou@ck-telecom.com> References: <1437122076-29816-1-git-send-email-qingsong.gou@ck-telecom.com> X-CM-TRANSID: PtOowEB5skSdvqhVloJ1Aw--.37S4 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RW-eOUUUUU X-Originating-IP: [182.148.112.52] X-CM-SenderInfo: 5tlqw2xrqjhw1rx6uywnwhzvxfrphudrp/1tbiLgI6uFVirh+RQQAAs4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1257 Lines: 39 Signed-off-by: Jandy Gou --- drivers/iio/magnetometer/mmc35240.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 7a2ea71..9bc542d 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), }, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/