From patchwork Tue Jun 13 17:20:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 105408 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp515954qgd; Tue, 13 Jun 2017 10:20:31 -0700 (PDT) X-Received: by 10.84.238.201 with SMTP id l9mr770354pln.153.1497374431704; Tue, 13 Jun 2017 10:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497374431; cv=none; d=google.com; s=arc-20160816; b=HX4ScsxNaM2Xtg2cOr76siMrseaYOZl1t4pQtk5tTJpGK5+ztVpcCIHmcrb/7K12w+ VtGNzhgGV57Wk4elmPkTw9y84UDldLdk176L/gFZ03S05TNBFmTxcVqv8ikIIMZ+65FN qaX+6VhvySYoNukH1M+ZhP8+Q3vIwv5gGUJPtXNf4oB6gtAIqs8QZybG/l8yGRmVWpT3 ejcKNeZgRF8clm+sBAqOgmQVBCrtP6eRWA/aDVnftD52D2JC6N/BUMhj3XbHhU/Ui0rz 4hO84FCi/KdXeituCfcPtCLtGSmO/lzsGE4f9PbUlLjG4FD00oc5OTvppBhMnsPN3M/Y IZaw== 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=umAL/vX8M8LnMSA2uzRZ/8iBhg5tddd4/EF1Xjx8hcg=; b=QBeUyJXtRtK00FPkocx/32n8le+Iwc5Dc6Ia5Z7LWAXKEFgd29wQs0kO5r4mFJly6y 0zFMKsiSsbMM1DjCjZYLFh+cfocdp74MT+w8bXvoNR00zIO8U3LdLSjf4ZS4av+vMUX8 U6cLphqnoWyYaXMErM5HOi/BTZc3R/EneyCA4N8F7LvtDECmDk7NN5fiEOqd2jvd7QG1 qEd7194yrL52esaNnycP4vxFe4SOip90gGuR5oTYoGZk+t42yhUuoa6k6axKp+3wLKTU H+56CqR9hpwcPw6yvgkVrTtD6GUqHs4PJG+H1fPoMjub44rtqHSrFQ/BVbspACgCrzn0 czxQ== 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.20.31; Tue, 13 Jun 2017 10:20:31 -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 S1752156AbdFMRUa (ORCPT + 7 others); Tue, 13 Jun 2017 13:20:30 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36784 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752033AbdFMRU3 (ORCPT ); Tue, 13 Jun 2017 13:20:29 -0400 Received: by mail-pf0-f174.google.com with SMTP id x63so70955698pff.3 for ; Tue, 13 Jun 2017 10:20:29 -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=V3fFcp9mK36Zo2JUc4ktZq/94OrfEJUSsriMI4RPrDk=; b=PcVJECd62MqxdWUmQjG3x5Ussx1XuPH4Q5LI2ocgTnPj4hkkjhWv4srZtbTpSVxsUr tLnSwtX7FJ7tJh7LMrKceBXCLd909lWOhAoW3YHQLErbk4I1zkY2xWxe44XR2lL5jfQE WJ79xhZPAwAyM9+j7lFkCs6TYL0i85QpeLPkM= 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=V3fFcp9mK36Zo2JUc4ktZq/94OrfEJUSsriMI4RPrDk=; b=hgkFQ7Ub51MTwa7WQbDvKIesCDSoeTLs2xVxrcFsiL++ju4XmXR35Tm0tmwTuJjDq3 Q8cXjSEmnGT9iUHldXD61IpWvMMXr3EEQX34DI/rE/7B9XDjx8vsG7vTP9wDc3v7CaJl AjMnHC8CkcWKNRb3Bvs3Ivlg+DtVbbsLskNTeJ3Kpb/jbSSmmttQKE+ZA0ON/ZovJdJz K6L6GrE7B/W0paeSkIUMNc5Eolcy67A0YKGoMz6w4poMQWnsuoBHeDijK036zhETBkDV jch9oYA71z8/jVgg22GC2y7lv+h1Yf4sMExFlpWwMjYK1Bvwh4TEFxMwtpvZhoUeAlvF Z9wQ== X-Gm-Message-State: AKS2vOyzH5JF7CBeMgK3Yax3bdkSPaofgiI4JJu5LkYkGCZbLWSP1+Uk miYm60S5jmJBtFrvOQBPtm0k X-Received: by 10.99.146.13 with SMTP id o13mr704109pgd.54.1497374428651; Tue, 13 Jun 2017 10:20:28 -0700 (PDT) Received: from mani-sadhasivam-linaro.Home ([43.246.138.4]) by smtp.googlemail.com with ESMTPSA id o24sm35798977pgc.11.2017.06.13.10.20.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 10:20:28 -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 1/4] iio: humidity: htu21: Add OF match table Date: Tue, 13 Jun 2017 22:50:05 +0530 Message-Id: <1497374405-20871-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 htu21 temperature & humidity sensor and humidity part of MS8607 sensor Signed-off-by: Manivannan Sadhasivam --- drivers/iio/humidity/htu21.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 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/humidity/htu21.c b/drivers/iio/humidity/htu21.c index 0fbbd8c..2c4b9be 100644 --- a/drivers/iio/humidity/htu21.c +++ b/drivers/iio/humidity/htu21.c @@ -238,11 +238,19 @@ static const struct i2c_device_id htu21_id[] = { }; MODULE_DEVICE_TABLE(i2c, htu21_id); +static const struct of_device_id htu21_of_match[] = { + { .compatible = "meas,htu21", }, + { .compatible = "meas,ms8607-humidity", }, + { }, +}; +MODULE_DEVICE_TABLE(of, htu21_of_match); + static struct i2c_driver htu21_driver = { .probe = htu21_probe, .id_table = htu21_id, .driver = { .name = "htu21", + .of_match_table = of_match_ptr(htu21_of_match), }, };