From patchwork Wed Oct 31 16:00:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishad Kamdar X-Patchwork-Id: 10662875 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 D567A1751 for ; Wed, 31 Oct 2018 16:00:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE64F2B1F3 for ; Wed, 31 Oct 2018 16:00:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B28562B20D; Wed, 31 Oct 2018 16:00:46 +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 641A82B1F3 for ; Wed, 31 Oct 2018 16:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729674AbeKAA7V (ORCPT ); Wed, 31 Oct 2018 20:59:21 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45715 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728848AbeKAA7V (ORCPT ); Wed, 31 Oct 2018 20:59:21 -0400 Received: by mail-pf1-f195.google.com with SMTP id v5-v6so2920107pfm.12; Wed, 31 Oct 2018 09:00:44 -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=CVl1ESSj4idIa/gbF1NQ+Xy9kDUcvqho4q0SllzV20U=; b=Ab7w+9WHaj5ieIEXc158y+Grk9mmLMeZzCEaKMNf3P+OgbEG6E/I+ylQtqV3KkiR4F LMVBR0NClQsxCO5IqnxHa2RVuNJ61lkzZY799rk5fMtBrxh7506rfBxlSiloqHe9DP5W lAJPE6LTPxxtiO6agbJOdfJPz8IL7CokheIABeXkrhjoX5rvjzPr68uRTLFuZ91+iFbL bObi2iBzhIYk78LI4hUjJm+8hrhxYmTQYxjNoF9DnyV7flx5RzxEnYi17ySD6k8E4+Bs 7QlyYFAcXr9c6HrWAU4pTvQNJFOP1Q6XOfPpGNk8efGduK9M2dzECOjWYuiKgRdOCmte Xn7Q== 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=CVl1ESSj4idIa/gbF1NQ+Xy9kDUcvqho4q0SllzV20U=; b=mkr/G0fqn/mVrlDgmwIks8K8WuqDsqkgix2ea41xrOdCrbXrIgQLrfwdIV1Z+RJW3W nHoubTnHRM41KL83Rg8AEu4DCdctlHh3Nhto335ldk6Kc6j5xkk2pk+oirv+us5LmH9O asSCqoKE5ggRnvPaQcXIBrMkQQQ/o33pYv8mVHcDyrlTP3f+aM5RCGgLSJ21ecKxKgw7 ISOo+F2LKqWmM9iRd68JXz/WmEojUgEAFhLVnj+m+Uqp1Ajij2xj+o0gy6RnupQaiBwV 1xR5qGJ4CgMxW+PBZOg7BenLvf5Mpxd5kwUlyhZnrvMR4Pz/LqsTr6voZPq0jMFCTYjn 2CzQ== X-Gm-Message-State: AGRZ1gLE4jmGLqi3QV9Veny30aK++qinuYHczQbv5J5Ko3N3Khh2zCCO S/EjIF5dUTiSnZJX57C1blg= X-Google-Smtp-Source: AJdET5fdFZ9qbWSa8LWQg0zUojvdgpJgZyJu998JYFlMuPqP1J+WY+5ytIf36Ed+Ej3rHTUzVXTMDA== X-Received: by 2002:a62:7086:: with SMTP id l128-v6mr4118503pfc.181.1541001644140; Wed, 31 Oct 2018 09:00:44 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id u19-v6sm30759983pfj.115.2018.10.31.09.00.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 09:00:43 -0700 (PDT) Date: Wed, 31 Oct 2018 21:30:36 +0530 From: Nishad Kamdar To: Jonathan Cameron Cc: Slawomir Stepien , Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 3/3] staging: iio: ad2s1210: Add device tree table. Message-ID: 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 d3e7d5aad2c8..7c50def91a2b 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c @@ -701,6 +701,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" }, {} @@ -710,6 +716,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,