Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6254188imd; Wed, 31 Oct 2018 09:02:02 -0700 (PDT) X-Google-Smtp-Source: AJdET5cmTjNc+eCwUB1MvN1+dsqaxYeqyEi9ojdi6zyIn0ij1FssBVThyCVlJF/J3RNojCAgC4LA X-Received: by 2002:a17:902:6a8b:: with SMTP id n11-v6mr3942982plk.16.1541001722229; Wed, 31 Oct 2018 09:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541001722; cv=none; d=google.com; s=arc-20160816; b=MZn4oBYL4+DeXiwfK19A4B80dXllNsNMnVNz3MtYemuQGqAVopVJNhdSn9FYJAUKGm OPmTQinNqPS/zfeVemEhvThMG3ZNVsvbeZC88Mhyjd6eEWfTsuGH/eqKmuOzQxTt3Uur nK8OA1mN6zAl6XViEFd+2Al6oSUuOxvm6p6Z44lEJ2PAMBucAAh7LByMposxEIgN3k3y Sgal49ZLWvSgYpULPngwRBLxcXol0JF3SzQgsiwepr2wq9/q8gbLoFUv7JCDokfhzC4E m17LIuB03rsqFzNEiFKmZNxGpNZEwB1z6znt0EbMA2aSKr2D/dozYXdPLlr4dlU9T0qp Qbcg== 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=CVl1ESSj4idIa/gbF1NQ+Xy9kDUcvqho4q0SllzV20U=; b=rH081/IMv6ZFi/uQkHBpUn4q0zhDAnbc+WsbEyEfX1FHVBhfO9Z9e6ZEbXXaGGIXoX LYRLGllg7J/aB6e1sTIxykd/SJwtT+rmDUDGI7ICQ2dCuhkPcesdkAx95HYYmzlVEg8Z L/nRDSt7dT5EPF9lMl9m9/Q2cVvzwRxuRf9D16YhQ98l5rG2BdRzlstCP2FiJ5GKUkFw Z69k+THN9dfnSlLWUmxhCafwGt29N+cLppLzsIN/qjz8aECad4D+LK8m9q9M3Dw/6eaN v2Qk9Wp9mEqGkiWKMpHEds2uCQwToxnjbuk6emb4WW5C1nR6YCa7qNjxwt7yP1aISgXl EcaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ab7w+9WH; 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 31-v6si18413456plj.36.2018.10.31.09.01.44; Wed, 31 Oct 2018 09:02:02 -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=Ab7w+9WH; 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 S1729799AbeKAA7V (ORCPT + 99 others); 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-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-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 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, -- 2.17.1