Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11273605ybi; Thu, 25 Jul 2019 13:10:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUozspaZpPkF2n5k6W4AyuER4cXDRJSXPS4uWZYhhJcT+xdLBjYDL/I67FxAOEBSeRkRHx X-Received: by 2002:a63:5811:: with SMTP id m17mr17323607pgb.237.1564085405234; Thu, 25 Jul 2019 13:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564085405; cv=none; d=google.com; s=arc-20160816; b=tKzK3XWD2INiGn9Pz9qfoodxIHapTCwEayqY/Gdvvr2n53e1seGp+mHyQyTiGCFiu3 IAVkZSTRvM968YMnFGE1GqH5HLDBQMqPZQT2w2xGKFICzb288ndeOBh6uAesujElVVcC 0cVAQ9AoPyFM7XYC1Qt03GW3K8/5u/9NzKP82/tfsYKToL0XYBO6/UODXYaluSfgpSFB 5VlwCtQu7qD/05Q/Rf3m/twLdjwP0pUWzxWhguEbnBLDB6vX1UVjv/PJHknt6NV86lNI DPUGMnV3zwzOdbDKz/1FTeEZhf0HhuRpZwnDuNtclAkOuRah0Qi6fZsYzK4zb6ASuLM1 FBlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JUKV8WRNFyPUgh72J2ygKbXLGmL3yg1CtOIEnQ3ys8Q=; b=eHMp6vZ2qgkM5+hrCVxrJRavWemEnq6NYnm8zETGdJeXzrh3XEcBgrCuhG8jFlGaZt tvtjS5Lw1zUFzTF4b97yiqA/jP6Y0xce5rvkCLpq3MkQtzHZte0CTBZ6oTCcSTr1MRwT 9yJZ37aMURF7+tXD2PAH+Dt+Rkz/YNFP05NBgSExx1kCUZ57jY9w7LP7vIRJ8P4HE/vU 38ENW0J8KDXVHKc8jI5BW4RchISZ4NGrAtbHj79GrslQQ7RewOVAeSzHoxf4aXP3B8C5 jE4butJSB/hs8dhKK22hTXoJNJuLsUbpNstabCay8fdcvzzGQ8NJ/k7QANU1KaXeIdDL 21sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dQPZ9xr5; 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 h1si5907469pgd.443.2019.07.25.13.09.49; Thu, 25 Jul 2019 13:10:05 -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=dQPZ9xr5; 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 S1726593AbfGYUHP (ORCPT + 99 others); Thu, 25 Jul 2019 16:07:15 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33498 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfGYUHM (ORCPT ); Thu, 25 Jul 2019 16:07:12 -0400 Received: by mail-qt1-f194.google.com with SMTP id r6so46114631qtt.0; Thu, 25 Jul 2019 13:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JUKV8WRNFyPUgh72J2ygKbXLGmL3yg1CtOIEnQ3ys8Q=; b=dQPZ9xr5JDDOjCF7rG8SZMnCbkMeZmnwNjiXYICC0ydBM86Vn5XGqOtYYCso904WEN rkO5Kdpek6TREvb1CUOFZ2xlofa3+1Dz/mXtCmwlJa9KxE/+tGsoBS+cEYvaeieZ0ads h2BxtBG3aKG/X0e5VCq5/QHGzKvn+MxRUkgdx/K110yQNIo4xVqFVdzxN3oeBzSAQlsa 6ghaFVqSbThPwZ7n8t0iZ7XEmpORWy48ZIqewk/8vY1xZOfsmuwGe0wiJM4uQ3uxttgl NXPqQyjohfu4R4oo0q3rfiiTGLiimANHKOZDWgONTvM8UJVF05urU9S4VzISttcA2h9z J36A== 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:mime-version :content-transfer-encoding; bh=JUKV8WRNFyPUgh72J2ygKbXLGmL3yg1CtOIEnQ3ys8Q=; b=a/dhKAqdG07UkXPX3qSzySPqncl6Uhp2NOJuVpsF1gZp2ggZKrRPUJI599fxLqzo0m mMXXF1dg52HoM5I3hlOKkWGlnSeuuL7BExvq7CKW0XFnbMNEJZuyRLxQu8CDSa+zV0Jp O6ogCPWnY6MXg9BAu+qgxYGiVcY0Gse2jrOVbRv+K6gtxcW5d2MAjEDpKAs1hRChoG+j cN2On5lBQXY/6NSasdnKzgkIcNkd7BzJsJU3xLE1iciRrbqfoWIdqpNdshCZgQSnT+lV rpUMZULnabKEcvvA577oumtq8YTd4TaqbDURzddJ2905lIYWrlMnWUFNxU9KpxePqSSg srvQ== X-Gm-Message-State: APjAAAVeiCgpLLe1rVbyCLdqdwPkruROd0A6oA6NDIYSSquMlCLxay3M ph0iOl3XyPiLxTMJ+YY3mKY= X-Received: by 2002:a0c:d7cc:: with SMTP id g12mr31578289qvj.220.1564085231696; Thu, 25 Jul 2019 13:07:11 -0700 (PDT) Received: from karz-laptop.vlan96.localdomain ([200.17.97.58]) by smtp.gmail.com with ESMTPSA id g10sm21709514qkk.91.2019.07.25.13.07.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 13:07:11 -0700 (PDT) From: Kartik Kulkarni To: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Kartik Kulkarni , Matheus Tavares Subject: [PATCH] staging:iio:adc:ad7280a: add of_match_table entry Date: Fri, 26 Jul 2019 01:36:49 +0530 Message-Id: <20190725200649.30592-1-kartik.koolks@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the of_device_id struct and the respective of_match_device entry to complete device tree support. Signed-off-by: Kartik Kulkarni Reviewed-by: Matheus Tavares --- drivers/staging/iio/adc/ad7280a.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 2d9c7551f314..ded0ba093a28 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -1027,9 +1027,16 @@ static const struct spi_device_id ad7280_id[] = { }; MODULE_DEVICE_TABLE(spi, ad7280_id); +static const struct of_device_id ad7280_of_match[] = { + { .compatible = "adi,ad7280a", }, + { } +}; +MODULE_DEVICE_TABLE(of, ad7280_of_match); + static struct spi_driver ad7280_driver = { .driver = { .name = "ad7280a", + .of_match_table = ad7280_of_match, }, .probe = ad7280_probe, .id_table = ad7280_id, -- 2.20.1