Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2041024imd; Sun, 28 Oct 2018 01:29:14 -0700 (PDT) X-Google-Smtp-Source: AJdET5cV+TJfbzfX/bNmrKKWb8uGAPrhLmJuouxTOSRbgjyaLCf8hxtYKRLe3x8EVuYpdVWoA2pJ X-Received: by 2002:a17:902:1021:: with SMTP id b30-v6mr9963128pla.23.1540715354510; Sun, 28 Oct 2018 01:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540715354; cv=none; d=google.com; s=arc-20160816; b=gTIgQKHLvQcVXPr9ecbe/FHcJyiarDra9RNbGFImCL5lwYc5IS5uR1QQzPDEYKxXA8 4NQMIuZsNAWLJRmlrhWsu3mHGTclJqVVj4XIP48j9KAcBNEhg6roOG/lNn/5TSsJ30yE stvyU08ZZrR0i/Ou+BAtDxeq91CNLE/r2p7R3uMsmSRWm+2kEEC42h3ubEpKN+v51beH O5bk9UZDdvO4RsmQGWHKXryHi9FFb+uGhQA2v8pe84sgN9Ezf6A7NjZSGNtiVHJD9Nwh LOESmdNcyPAyPUyBrdF/2+Oj4gmn3QWjrVShpxxG7LdR+AdaMg37os70Ut6eV/bdp6aZ fNcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+eDLvkiiPUO0D/lugMgy57N+b7fklqEyeUYtP+nRnAs=; b=qzea0sTxia/sMJDy98qcZUgEQ8H5s6H/wv2W6RtwWkN3/Ge+dkpQT2FlAP/4jSzTa2 aLxkw3LBllacT0QMoN0wnZ6ZwmZrIM58UC/tr8pKab6xo2O+MiklzZF3X6fimWP0Qcmh N5ta7DyMdF9hoZGH2l3D8zlP5wG+DDnR9FemHXUqdm7OlTSdLNkkKU/VfKWt05rXSE1R Xa1LN2/s8R/qU7g3L8qjusiXA1LA3AymZuTRJns4x1sEIb6/oKDB6LrLOyNB56Y4ulvw cElU7tE5CYeRjvyPyv4IMD1SdXcwjHanrNgNJYMvek9E11QZhkfP7Z8pIedU29kyFW1L 6xxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PKVpIkGw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6-v6si17043032pgd.312.2018.10.28.01.28.58; Sun, 28 Oct 2018 01:29:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PKVpIkGw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbeJ1Qgb (ORCPT + 99 others); Sun, 28 Oct 2018 12:36:31 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37658 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726488AbeJ1Qgb (ORCPT ); Sun, 28 Oct 2018 12:36:31 -0400 Received: by mail-pl1-f193.google.com with SMTP id bh10-v6so2356902plb.4; Sun, 28 Oct 2018 00:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+eDLvkiiPUO0D/lugMgy57N+b7fklqEyeUYtP+nRnAs=; b=PKVpIkGwboaryX/KZ5QbQmpBbNbNQ7kPymEIUHKxQYqlLlOnRuwi7i+Jj1l7V1Uy69 hbucVgyGk9CDQ3JZzfzBIPr04Ff4B51JqXeQqbbupOJUlGvtD4nhfZJ3UVNnMRu4tQft J8QWqpcGfDdni6+Gx8sPIs1TMkof/eCs32XX0m6yLJ0BF+ag9xM/JEo1r7CTe2hdvHmJ Dn0rR++r2E1LTPZw/gFOcDxMI01pxhqIcDT9u4cUelOm2H/T4bJNkj9PuEUE6iY7Pk2d z5uJ+OR5CW0zkoI6NbGj5pRM7QOolxooXCVdjn5ip3logmTtQSuxhVkrM0S59JI1u5PJ f5xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+eDLvkiiPUO0D/lugMgy57N+b7fklqEyeUYtP+nRnAs=; b=hiy2vjxAVjmiZ4tJ/UdYuCoJeDQYw+u82+QUSpGsD3PR6MJke4JmADBCnuDz0qljNE fpkdzhlC+GbeMnq2xPk/6p4tn5tPezvyjf9Y84ilNUyICehQIkJUI5CRCbUrRolrscGw 2WMteTNzgw4JrvKUJLb5sWdntcg5buFnzywLY7141edS2XX1AQ+m2oYg/n3ppJK3Hn26 olMwDh/87IsMhVCEkF3MkipgZ0wGxlrnzeV+5O//XjPBghQ4kd1IxF0AqICy82unF52/ +RmV+RpB78ZtRoS8GqXqM8Y9BAiG5xNknxHWzXxalW/PGR86KPRuONFWSs5saAJocbNd 4fZA== X-Gm-Message-State: AGRZ1gLVIXTkwvz4y2mJHvyoeflwGIqPwmKzHDi1YTaq6iUqhI2grrH+ 9VqO7ERb2e02Tcsty1ywwCo= X-Received: by 2002:a17:902:930a:: with SMTP id bc10-v6mr9923887plb.17.1540713158978; Sun, 28 Oct 2018 00:52:38 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id b62-v6sm17642892pfa.159.2018.10.28.00.52.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Oct 2018 00:52:38 -0700 (PDT) Date: Sun, 28 Oct 2018 13:22:31 +0530 From: Nishad Kamdar To: Slawomir Stepien Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 2/3] staging: iio: ad2s1210: Add device tree table. Message-ID: <6b324781850b7543f8bbe67a6a48c9469d8a707b.1540712249.git.nishadkamdar@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree table for matching vendor ID. Signed-off-by: Nishad Kamdar --- drivers/staging/iio/resolver/ad2s1210.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index 93c3c70ce62e..0234869e9d74 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c @@ -724,6 +724,12 @@ static int ad2s1210_remove(struct spi_device *spi) return 0; } +static const struct of_device_id ad2s1210_of_match[] = { + { .compatible = "adi,ad2s1210", }, + { } +}; +MODULE_DEVICE_TABLE(of, ad2s1210_of_match); + static const struct spi_device_id ad2s1210_id[] = { { "ad2s1210" }, {} @@ -733,6 +739,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id); static struct spi_driver ad2s1210_driver = { .driver = { .name = DRV_NAME, + .of_match_table = of_match_ptr(ad2s1210_of_match), }, .probe = ad2s1210_probe, .remove = ad2s1210_remove, -- 2.17.1