Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp471468ybh; Sat, 18 Jul 2020 09:37:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh7ftu3vtHrIpjCi5ESKCc76+UOOwUIF7U7Av2wG1UYwD5VTAo2vfVH2xShaHCuqOTZ9qn X-Received: by 2002:a17:906:3a04:: with SMTP id z4mr13222529eje.441.1595090247724; Sat, 18 Jul 2020 09:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595090247; cv=none; d=google.com; s=arc-20160816; b=udtpjz/nsFUKfLHehQZZOU9RmBkSjsnvHsi5updYofylFlKzk+MYlvxZFE1YEZ5VGC QqhW9RpuhbCnFraGlIZkXCnYoKHnabqci1l7tivxPaLH8VPsTkm/HLrCEuoztds3s+o0 X28uiK5bTLHbAaZLzCmRX6vELqUDyPQ9t2c1D67UtsuqXJKjfgVcbJPiVheS2M0RuqMh jkU0Ff42yGoab0SzwfEoGMu1OlRzB0IoMxssMMd6K+mL9+sa82afWIIfTLQdq6Wrk4T0 /hLMOkYIAA9ozfVDteNx6uNQhO8T9HaE/nbODe6wZ09lIl9nyVv2B9QRE0yK4QaRydHk 1pRw== 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; bh=itrXRr4xC+9GdvSt/Y1SKzIW1jCtxCObi4bGMEzVV4U=; b=vPCaekWrrISOFcXXsBJsSbTOjuxTeoHjWUJbSkcp2DW7YliSyCAYQ/zeN0tKN+7Ter alW9VHVE5xtBM638z7DNp8ILgp000dh1E1t15uZ+TsXuy3OHrZSs0j2Sq/6gz6PjBiFR MkCYN33o1Bbnw97WAG/9KsrKTOuK8ivuF8WqWxQ8QV2bzMkYht8374entoOtVEa1CLZ0 Gc7AkBD7q0SxF5ijaa69jwPOCC3T++Xr55oNnYoCcNeOLmGjRqfqRxHeIhR2GU+NsTle /bqhLAWXT+dvjcN3JbCoeVLQT6fs9coBvGEh/iJKTxwZDnqUG6GQgVG+BFwjKc0bmcMy f7aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2961576edx.522.2020.07.18.09.37.05; Sat, 18 Jul 2020 09:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbgGRQgD (ORCPT + 99 others); Sat, 18 Jul 2020 12:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbgGRQgD (ORCPT ); Sat, 18 Jul 2020 12:36:03 -0400 X-Greylist: delayed 594 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 18 Jul 2020 09:36:03 PDT Received: from saturn.retrosnub.co.uk (saturn.retrosnub.co.uk [IPv6:2a00:1098:86::1:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4477CC0619D2 for ; Sat, 18 Jul 2020 09:36:03 -0700 (PDT) Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id C67F99E0030; Sat, 18 Jul 2020 17:26:05 +0100 (BST) Date: Sat, 18 Jul 2020 17:26:04 +0100 From: Jonathan Cameron To: "Ardelean, Alexandru" Cc: "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" , "Tachici, Alexandru" Subject: Re: [PATCH v4 2/2] iio: adc: ad7192: move ad7192_of_match table closer to the end of the file Message-ID: <20200718172604.4257a4f8@archlinux> In-Reply-To: <191e9880ea3dd0e127b102f006c208f31d57c421.camel@analog.com> References: <20200415055804.17971-1-alexandru.ardelean@analog.com> <20200415055804.17971-2-alexandru.ardelean@analog.com> <191e9880ea3dd0e127b102f006c208f31d57c421.camel@analog.com> X-Mailer: Claws Mail 3.17.5 (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 Mon, 13 Jul 2020 16:11:39 +0000 "Ardelean, Alexandru" wrote: > On Wed, 2020-04-15 at 08:58 +0300, Alexandru Ardelean wrote: > > The change is more cosmetic. There is no need to reference this table in > > the probe function since 'of_device_get_match_data' is used, which > > obtains > > this information from the driver object. > > This looks like it could be applied now. > The iio/testing branch seems to have patch [1/2]. Thanks. Applied. Jonathan > > Thanks > Alex > > > > > Signed-off-by: Alexandru Ardelean > > --- > > drivers/iio/adc/ad7192.c | 18 +++++++++--------- > > 1 file changed, 9 insertions(+), 9 deletions(-) > > > > diff --git a/drivers/iio/adc/ad7192.c b/drivers/iio/adc/ad7192.c > > index 1431f555daa6..fd89a5115c55 100644 > > --- a/drivers/iio/adc/ad7192.c > > +++ b/drivers/iio/adc/ad7192.c > > @@ -908,15 +908,6 @@ static int ad7192_channels_config(struct iio_dev > > *indio_dev) > > return 0; > > } > > > > -static const struct of_device_id ad7192_of_match[] = { > > - { .compatible = "adi,ad7190", .data = > > &ad7192_chip_info_tbl[ID_AD7190] }, > > - { .compatible = "adi,ad7192", .data = > > &ad7192_chip_info_tbl[ID_AD7192] }, > > - { .compatible = "adi,ad7193", .data = > > &ad7192_chip_info_tbl[ID_AD7193] }, > > - { .compatible = "adi,ad7195", .data = > > &ad7192_chip_info_tbl[ID_AD7195] }, > > - {} > > -}; > > -MODULE_DEVICE_TABLE(of, ad7192_of_match); > > - > > static int ad7192_probe(struct spi_device *spi) > > { > > struct ad7192_state *st; > > @@ -1050,6 +1041,15 @@ static int ad7192_remove(struct spi_device *spi) > > return 0; > > } > > > > +static const struct of_device_id ad7192_of_match[] = { > > + { .compatible = "adi,ad7190", .data = > > &ad7192_chip_info_tbl[ID_AD7190] }, > > + { .compatible = "adi,ad7192", .data = > > &ad7192_chip_info_tbl[ID_AD7192] }, > > + { .compatible = "adi,ad7193", .data = > > &ad7192_chip_info_tbl[ID_AD7193] }, > > + { .compatible = "adi,ad7195", .data = > > &ad7192_chip_info_tbl[ID_AD7195] }, > > + {} > > +}; > > +MODULE_DEVICE_TABLE(of, ad7192_of_match); > > + > > static struct spi_driver ad7192_driver = { > > .driver = { > > .name = "ad7192",