From patchwork Sun Oct 28 07:52:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishad Kamdar X-Patchwork-Id: 10658513 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 32ED8109C for ; Sun, 28 Oct 2018 07:52:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D8E229EE0 for ; Sun, 28 Oct 2018 07:52:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B9F129EF9; Sun, 28 Oct 2018 07:52:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0CB529EE0 for ; Sun, 28 Oct 2018 07:52:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727532AbeJ1Qgb (ORCPT ); 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-Google-Smtp-Source: AJdET5ePTf48hv9W7rUoFU0pozDV59sH9Cqa6oMfnW7bpmFVIV7jHKUoaJlwnTI5ckJtIHUhT3dqZQ== 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,