Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5021269imu; Sat, 1 Dec 2018 07:36:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/UmLa0qbLdbbhs2V0K2fFED4asqAxr0CVbg+ClFqzggUu27AGokCFeTDoVUMRTXOBQuPvGn X-Received: by 2002:a63:5320:: with SMTP id h32mr8184668pgb.414.1543678579341; Sat, 01 Dec 2018 07:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543678579; cv=none; d=google.com; s=arc-20160816; b=Lf+PpBBfErRlEnBWm279VvKP8EUyxCBp9BrZ91usbD3DPdsx3/7qase/6ZS4hnpr0h qZx2XOTHuDgLn2YItxEzxZZ+gIxyVYZwPCvW1dIZmVdSo194FgTfzIav2ob5hn4/1I1C e4Pr7UlQiMm2rtso/4ovEz9Ry8LEG23sIhL03+qJdOjXTBqolz9L76ZiLzZgtejLHrxR CSY+0pssjh0lxUQXkFmjB0VXYXqA6oSgC/8xPpMeBkYwFY714gsOFB7WmBRBjCwdBoCq vqerlpZv/wPQdjeokpZPdAxws+vaCNwGXUug4XJ2JB00BXy/muxp3g/8eO9B7sC7+eyS X6zg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=My7SaXAOwEhjL98sOOm7KlIHid5QVLPFzrrGspjzzvU=; b=jfo5YwIVC2f1MxLyHUPaBzYCxysv3AJbukdnfOf/Xwu0iPI0vxzx1bVtzReVGaTKf1 WVJnwx+9E0Tp+zBLeyibU3OJ/0AFbTMn0dFVvTzQvIjWASW/2gwRn7kZ88cFGnziLxXC 73kRFH/JRcJxNTampQ0bjM2SZhLT/Xe/r43WHc7o521RHuM6f5XmQA8egdFpEc6u8aCT bLW/mx8ueJCkmWoD0qKo0s90jG53yj3gz0Rxh7i+PTpHigvjTBRYfJNfLsyagzj60Uw4 bWGYOfanivYKnVPdkNxa0y9pJBuYgALHEYDAszqbcQlTDzikg2Du8n2YS/FteNUcxkg5 KyzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VRZmqATp; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi6si8543372plb.279.2018.12.01.07.36.03; Sat, 01 Dec 2018 07:36:19 -0800 (PST) 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=@kernel.org header.s=default header.b=VRZmqATp; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726955AbeLBCrB (ORCPT + 99 others); Sat, 1 Dec 2018 21:47:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:50498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbeLBCrB (ORCPT ); Sat, 1 Dec 2018 21:47:01 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 919B42081D; Sat, 1 Dec 2018 15:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543678455; bh=tGI7IcN5NnC1d9XfZ4jpIO5v1xuaoy/Mw2BTCh3agVw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VRZmqATpXc9Tg7U4Z+k9ixCFaR6TLIDnwrQqx3f1NQRgwC7Kz0OGVfWvEzAnmZutJ h8Wd14GM6T2HuuDGYXh7f6uTfMc7dVVkXEhQh440nofq3UY8RNAU4H11qNEOWifW8Q fvKGGjOrXtdcYObOIouQ7BnV6dp2LbcaDIL2Nxl0= Date: Sat, 1 Dec 2018 15:34:10 +0000 From: Jonathan Cameron To: Matheus Tavares Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandru Ardelean , kernel-usp@googlegroups.com, victorcolombo@gmail.com Subject: Re: [PATCH v3 1/7] staging:iio:ad2s90: Add device tree support Message-ID: <20181201153410.0a62c450@archlinux> In-Reply-To: <20181124002312.6923-2-matheus.bernardino@usp.br> References: <20181124002312.6923-1-matheus.bernardino@usp.br> <20181124002312.6923-2-matheus.bernardino@usp.br> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Nov 2018 22:23:06 -0200 Matheus Tavares wrote: > This patch adds device tree support to ad2s90 with standard > device tree id table. > > Signed-off-by: Matheus Tavares Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Joanthan > --- > Changes in v3: > - Removed of_patch_ptr from of_match_table assignment > > Changes in v2: > - none > > drivers/staging/iio/resolver/ad2s90.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c > index 3e257ac46f7a..fdae067ed866 100644 > --- a/drivers/staging/iio/resolver/ad2s90.c > +++ b/drivers/staging/iio/resolver/ad2s90.c > @@ -107,6 +107,12 @@ static int ad2s90_probe(struct spi_device *spi) > return devm_iio_device_register(indio_dev->dev.parent, indio_dev); > } > > +static const struct of_device_id ad2s90_of_match[] = { > + { .compatible = "adi,ad2s90", }, > + {} > +}; > +MODULE_DEVICE_TABLE(of, ad2s90_of_match); > + > static const struct spi_device_id ad2s90_id[] = { > { "ad2s90" }, > {} > @@ -116,6 +122,7 @@ MODULE_DEVICE_TABLE(spi, ad2s90_id); > static struct spi_driver ad2s90_driver = { > .driver = { > .name = "ad2s90", > + .of_match_table = ad2s90_of_match, > }, > .probe = ad2s90_probe, > .id_table = ad2s90_id,