Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932187AbbGQHn7 (ORCPT ); Fri, 17 Jul 2015 03:43:59 -0400 Received: from m50-211.qiye.163.com ([123.125.50.211]:38832 "EHLO m50-211.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbbGQHn5 (ORCPT ); Fri, 17 Jul 2015 03:43:57 -0400 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, Jandy Gou Subject: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding Date: Fri, 17 Jul 2015 15:35:01 +0800 Message-Id: <1437118502-29625-2-git-send-email-qingsong.gou@ck-telecom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437118502-29625-1-git-send-email-qingsong.gou@ck-telecom.com> References: <1437118502-29625-1-git-send-email-qingsong.gou@ck-telecom.com> X-CM-TRANSID: PdOowECZM0imsKhVfxMOAQ--.32S4 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUOMKZDUUUU X-Originating-IP: [182.148.112.52] X-CM-SenderInfo: 5tlqw2xrqjhw1rx6uywnwhzvxfrphudrp/1tbiLwk6uFVirmuuogAAsa 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/