From patchwork Tue Jun 13 17:21:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 105410 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp516340qgd; Tue, 13 Jun 2017 10:21:26 -0700 (PDT) X-Received: by 10.98.59.92 with SMTP id i89mr660762pfa.122.1497374485983; Tue, 13 Jun 2017 10:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497374485; cv=none; d=google.com; s=arc-20160816; b=ziAq4H/hi54uelUtRAkQ1ZbefD1ppuP/SnJM0IfRpo5aVoaw2egWid82N9povM/eu3 ittlX8gui/jFd7v3SP9e262Z/E1Ty+pe6jko/X2+1Kp2dFBe3eoZHc189aw4Yxj/hyGv +upsiqFOJpVDORd+5REF2zjOHgfNvk1O/p8S1LBTZqIiZ+DdIqBJi5PS+5pGnxcaijvu BfgajbasBF+WtbaXnixft05H69S90z0KbPMfFkYVYpSsEM0gmznrOFKTA3q/qHLAy3y1 Lq6SD7NYsEDnXOg5uyNhvynd58yw8MRyGxoZc2+eInWLFTHUJz5E1qOfT2ioLQvKt0qX DiLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=8psQTOBObk8U+R9BoTx+vYuAaQOM8p1N+o+7YEBHnQc=; b=nCKPWGpNmuXqG87Ar055uTLdoNHBNCmrJm+IS2aVX2cN3684xVmVKQItFcBXqR4pIV kV0UeOtcAbhf/DVOJGHyZDjrxmOBDsFMMps+VVWsiXwyVIM8tqEJfLTqEYZOGbSztUOR Ftaicba8hQjWqrXWraIKU4gvyssUNmnQKyy/WRrzA3JBlNQPf1D/IFv2LrhWNQ1bnOIG iaWdlDkGkNORKIzMPVADxwvtP28NgcgaulN0YQNfLdFwFIlgSbjl8Ad/56BK2YhqjA0w +WagmUr+SePvS9Vb2pcML5Jl9VsKwuubPkubBH7/hDsKHscyKQyVLL+4i83RSAienPJK fa6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si240162pgc.463.2017.06.13.10.21.25; Tue, 13 Jun 2017 10:21:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752489AbdFMRVZ (ORCPT + 7 others); Tue, 13 Jun 2017 13:21:25 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:34799 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751822AbdFMRVY (ORCPT ); Tue, 13 Jun 2017 13:21:24 -0400 Received: by mail-pg0-f54.google.com with SMTP id v18so63549918pgb.1 for ; Tue, 13 Jun 2017 10:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=nM3KLVe1NEdjRZdywfKxRdrPTk+0MW1e/pGD9vOHaSg=; b=OxcQ49vYXgo08LlaaoNDHEjjdo9OqYcof1E92nP17CoyS5SE6+yKaDuei5NfxQnBCw cSQoJq16HL2GLfuDD9GrCQaQRtjWAA1cqtL/v2YCCIoyGbf3poL6GI2fYc2O8nqSVWkK +LxFWEgiivbSXmY83FZX1KPnF1oWky4y5OVEM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nM3KLVe1NEdjRZdywfKxRdrPTk+0MW1e/pGD9vOHaSg=; b=Qqqn+MKDLVKGCvdDJgx0jEzawOJ+amTwezd+0lwr6KfR+08VKIKakG4tmzHDmb+7+1 gNES1E5W6gbWLDcLZLNiy6t4d9sd2Snz7pTy+oIoDPDyMM3exlqZfOM/S+l21vAb/9co NvcIRDelIM7/aeWVHeAa033YZPPzNVH62bsdIA2Ted06yNug4AY8SOOG/KlUYSsG3Bqq dn1/ul5/+OQBwr2epHZNsWJkLWpgijnbUucieThKwCsthiydhXxZwY924ynenu6frJBt ptX2hdEbw17PHd0bmoTZEgxJHXRncfuqQ9qMlne8TZu6n03GmH6S30MOkZmo/A6I/6Km cINQ== X-Gm-Message-State: AKS2vOxAqR/9L5aNWVpC42tQ3pZXUxe6+w4tL58KFjgJfgFuxfcpP7bd pX+Cj4++08zggX+E X-Received: by 10.84.176.131 with SMTP id v3mr819017plb.138.1497374483627; Tue, 13 Jun 2017 10:21:23 -0700 (PDT) Received: from mani-sadhasivam-linaro.Home ([43.246.138.4]) by smtp.googlemail.com with ESMTPSA id e2sm29648245pfg.36.2017.06.13.10.21.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 10:21:22 -0700 (PDT) From: Manivannan Sadhasivam To: jic23@kernel.org, pmeerw@pmeerw.net, robh+dt@kernel.org, william.markezana@meas-spec.com, ludovic.tancerel@maplehightech.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, nicolas.dechesne@linaro.org, amit.kucheria@linaro.org, Manivannan Sadhasivam Subject: [PATCH 3/4] iio: pressure: ms5637: Add OF match table Date: Tue, 13 Jun 2017 22:51:13 +0530 Message-Id: <1497374473-20987-1-git-send-email-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add of_match_table for Measurement-Specialties MS5637, MS5805, MS5837 and MS8607 pressure & temperature sensor Signed-off-by: Manivannan Sadhasivam --- drivers/iio/pressure/ms5637.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/iio/pressure/ms5637.c b/drivers/iio/pressure/ms5637.c index 953ffbc..c413f8a 100644 --- a/drivers/iio/pressure/ms5637.c +++ b/drivers/iio/pressure/ms5637.c @@ -181,11 +181,21 @@ static const struct i2c_device_id ms5637_id[] = { }; MODULE_DEVICE_TABLE(i2c, ms5637_id); +static const struct of_device_id ms5637_of_match[] = { + { .compatible = "meas,ms5637", }, + { .compatible = "meas,ms5805", }, + { .compatible = "meas,ms5837", }, + { .compatible = "meas,ms8607-temppressure", }, + { }, +}; +MODULE_DEVICE_TABLE(of, ms5637_of_match); + static struct i2c_driver ms5637_driver = { .probe = ms5637_probe, .id_table = ms5637_id, .driver = { - .name = "ms5637" + .name = "ms5637", + .of_match_table = of_match_ptr(ms5637_of_match), }, };