From patchwork Tue Jun 13 15:52:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 105374 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp475095qgd; Tue, 13 Jun 2017 08:52:33 -0700 (PDT) X-Received: by 10.107.180.20 with SMTP id d20mr638379iof.47.1497369153032; Tue, 13 Jun 2017 08:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497369153; cv=none; d=google.com; s=arc-20160816; b=CNAWQaZ3CyqiVcxVrhg7dc7pIY4LuO61ceU6PtflNPFkBe4vQ+iYvNHxutdTeQgC7I YEAsCiljpZjTsqyizQO3P5mtHlf3bnntwO+CiMBtIWVZQKBk/ewMHukQtxFlpsy7qfTh XCduqCkeZryQ176fru+wrOEif9BcIF57DI8bziJdHoyBUk4qLvZ6sqAYWcZAGinEaOk7 VZadgoqqq240n6sErbVumLKAzM69g6P0D43pyU9drdc5XigGf215krxxbLD8WvlMTmUV 3oVu23RT5fxZVP4TX/k7eoXD/c8S1YW1EkPADmjqISdaqUurZ3LmuHW0UiLGMRcb5enk RCdQ== 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=3UWG27QEMGynFR0bK2qTuntpZw1/WlupklISCsspn7Y=; b=peID8PIHKeKNqLTyffpjtEWC6TsvnsXz9SY1S6cAhT8/eQ/vh327H6+8yxyQxakbiG VOwtQTnFgYrE4Kj8R1emfhc5BmRSgBDovG8X5RSfa/2j2rfvPPSE2IkB9rnkTgMcU6Kw wWQUzxs0XQXDB7aU76w9Tj5MpL+lw2mQ5p3+JG+DE0Zpyn3N09ICkhs14E4jEuihkX3u Px9GitioLhmKHcMK7XUKknlcbmqurxmqxDYgFGcTUDax8iqKbjaDNYFhoeUg91hhHk51 T97Vw1ErrMX4zYzZMRBDcL14lCq1sH/7gVFkzS2hIvqXHwCLPyfEXSY0G8rg3MIGymEN KLSg== 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 62si333562itl.36.2017.06.13.08.52.32; Tue, 13 Jun 2017 08:52:33 -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 S1751758AbdFMPwb (ORCPT + 7 others); Tue, 13 Jun 2017 11:52:31 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:36296 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751768AbdFMPwb (ORCPT ); Tue, 13 Jun 2017 11:52:31 -0400 Received: by mail-pg0-f43.google.com with SMTP id a70so62509512pge.3 for ; Tue, 13 Jun 2017 08:52:30 -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=JKGSb6hKgGnYeCUtS2iHHld+6PllNl4j09IIr+DVTf4=; b=PzgZ/saQJovwXOsyoKiMPn/wtVm930Yq2Yp6zczc4nFCYHDJsxUMnIRM8m26Y1jAeY 5F3nXX3s7Pmp/QLiDp9JfPSydUUh9VeIwWcfgRoR96REAHwcDdWc9MJ9wLesDAejdtca bNcgxs94bgqXBEliY7gsxrkHV/rLb/NXiU1Mw= 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=JKGSb6hKgGnYeCUtS2iHHld+6PllNl4j09IIr+DVTf4=; b=NygwY0J4Esaa28HrA1tg09nkLBWsoRLkn2QJskTZeZntlk9x9H16DYAKsel27jd4JG uPrAVzPYEHCx9Imw2IwYyqagYaoVH5jVvOQPT051OVXnX8SSz9WsxDoDGR98Ih5Njt9V CRPXzb1FkxazqSy9rwK4Pf8jlN97uZOy0wmkUfAISKgrWoeC3EJWFkaDpcIk0SmudZTI ZMU8yp/YJ1YxryMuLZkVyLzRYf1y7VDppinWcU6SoaeeDXYD2orT5UyljrFjKA7I1ceA 8OeeeBs8MklVzo0nhHoNUHMtm7Ml8IcyDXaQMKQhlET/QBZ2eEclqumzML6OGAgyUJny eCOw== X-Gm-Message-State: AKS2vOwJkuv+q0sbMyE54rfHfgArC4ejPfpmoGoM1G/Dgoq/mQ4DkMRf o3aA0Zhp8USGIKUl X-Received: by 10.84.178.131 with SMTP id z3mr476391plb.175.1497369150431; Tue, 13 Jun 2017 08:52:30 -0700 (PDT) Received: from mani-sadhasivam-linaro.Home ([43.246.138.4]) by smtp.googlemail.com with ESMTPSA id y8sm28764030pge.0.2017.06.13.08.52.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 08:52:29 -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, Manivannan Sadhasivam Subject: [PATCH 1/2] iio: temperature: tsys01: Add OF match table Date: Tue, 13 Jun 2017 21:22:22 +0530 Message-Id: <1497369142-32473-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 TSYS01 temperature sensor Signed-off-by: Manivannan Sadhasivam --- drivers/iio/temperature/tsys01.c | 7 +++++++ 1 file changed, 7 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/temperature/tsys01.c b/drivers/iio/temperature/tsys01.c index 3e60c61..d8aa211 100644 --- a/drivers/iio/temperature/tsys01.c +++ b/drivers/iio/temperature/tsys01.c @@ -214,11 +214,18 @@ static const struct i2c_device_id tsys01_id[] = { }; MODULE_DEVICE_TABLE(i2c, tsys01_id); +static const struct of_device_id tsys01_of_match[] = { + { .compatible = "meas,tsys01", }, + { }, +}; +MODULE_DEVICE_TABLE(of, tsys01_of_match); + static struct i2c_driver tsys01_driver = { .probe = tsys01_i2c_probe, .id_table = tsys01_id, .driver = { .name = "tsys01", + .of_match_table = of_match_ptr(tsys01_of_match), }, };