Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1301568ybi; Sat, 27 Jul 2019 06:50:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLSZ8qU+WJyle40qhjv5ELfimuQn8ddApTeuc9T3b0oNRpW7W72X9vai0Y/AF+tHJrRGMA X-Received: by 2002:a17:90a:109:: with SMTP id b9mr98055536pjb.112.1564235412676; Sat, 27 Jul 2019 06:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564235412; cv=none; d=google.com; s=arc-20160816; b=a0RIouV7p9jSZw/JoT5aA+Q0/NIIPD587fq5SB9qaLanYhWU67R0RB5W4Ojkz9a/4v x3QN+otn/Oay28R5zDCWDs5l9piMYPr/uXBEsZ1tWy2Fy9JGboGtPdhuGVjTZV2ny/fi uH+Rb04dXaYMQJnzgpsiKFkRbhvL9W+YlSl6OisUmMkFje6H1j+0zFVTwdvcoNXdtJpL dMYg/L/gsYaOPVWGfalLUQtEPwREn/1U68WZdH0Dd8i9iyP1Ryoy3N/1f6nqObuj1lwL xgyB7sqsEhvgIbLY4epCz68DRdNsDQwImNSVilRBVSkqkePiCs3STNZ85N9uS0igLjp0 MRYQ== 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=fOG3PRTn4A7/j99adcfimLlVzWHS4J5//AW+y28sB4k=; b=L7p39MgJeSuK4IVGcHFRo60yZT2/SCJ5wqOJNdwsy933f1EbVhdqspvH/hgaMruv5e HYMWig4/aGfM98hmDQVXMqUUSS8u4n1xAl/BKp5tW98RvCEinVjXJMLDB8faKL4NaCoz 2GQ+Rl+KN5ipN6/Z/TeP7fUx3m743cFfwcEUUysoEXcZn4qoJFgWnT1F41HjCEInXD1l 1P7A2EsetgJTyENogFmGbpBrp7nYum2RXq6Wyx+CeAKRIvUwPQdvIvL8wHpFV8xaYKLS YI8scWWD7pk/UgDBkfawNXrolU/awyFRZFF4TtY+HHLjSCOS33YCNY9tgTVwKuNAGDul ISWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=maYeT5lX; 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 z1si6789659pgi.498.2019.07.27.06.49.57; Sat, 27 Jul 2019 06:50:12 -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=@kernel.org header.s=default header.b=maYeT5lX; 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 S2387747AbfG0Nrr (ORCPT + 99 others); Sat, 27 Jul 2019 09:47:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387576AbfG0Nrq (ORCPT ); Sat, 27 Jul 2019 09:47:46 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 C12DF2084C; Sat, 27 Jul 2019 13:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564235265; bh=KRXC9oCHi83exKq/ds8/LJTiS0VCynJGNxGjAL+U2vM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=maYeT5lXSLwXWuZjkW4yuhX4UdvER0UdQHXIeisgC7pdvO2cNq505+DcW/X8o8IcT SITDqZ4pRidtzkcjgf7tVLLYR9BaV/g35+V0EtiQQ0u1L8/6Pc/7yFr22pFCUFYiEa osPb3hnkRTs6N/8YTf18KRTg5gaS0WKkmapRxMGM= Date: Sat, 27 Jul 2019 14:47:39 +0100 From: Jonathan Cameron To: Matheus Tavares Bernardino Cc: "Ardelean, Alexandru" , "Popa, Stefan Serban" , "gregkh@linuxfoundation.org" , "pmeerw@pmeerw.net" , "Hennerich, Michael" , "lars@metafoo.de" , "knaack.h@gmx.de" , "kartik.koolks@gmail.com" , "devel@driverdev.osuosl.org" , "kernel-usp@googlegroups.com" , "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" Subject: Re: [PATCH] staging:iio:adc:ad7280a: add of_match_table entry Message-ID: <20190727144739.4461b5a3@archlinux> In-Reply-To: References: <20190725200817.31277-1-kartik.koolks@gmail.com> <0e273486f1c4fb6249896225837cdf2da0fd2415.camel@analog.com> X-Mailer: Claws Mail 3.17.4 (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, 26 Jul 2019 14:59:16 -0300 Matheus Tavares Bernardino wrote: > On Fri, Jul 26, 2019 at 2:30 AM Ardelean, Alexandru > wrote: > > > > On Fri, 2019-07-26 at 01:38 +0530, Kartik Kulkarni wrote: > > > Add the of_device_id struct and the respective > > > of_match_device entry to complete device tree support. > > > > > > > This would be a [V2] I suppose. > > > > This change also does the rename of the driver name in a single go. > > Since it's a trivial change, it's fine from my side. > > I think there was a small confusion when we sent the patches. Sorry > for that. Originally, Kartik made the rename in its own patch. Would > it be better if we resend the two patches separately? I would prefer that. They are two separate changes, and the driver name one may be a little unexpected so let's make sure it's obvious. There is also the question on whether we should tidy up all the prefixing to make it clear that this is an ad7280a throughout. Perhaps that's too painful though and we should leave it like this for now. Thanks, Jonathan > > Thanks, > Matheus > > > Reviewed-by: Alexandru Ardelean > > > > > > > Signed-off-by: Kartik Kulkarni > > > Reviewed-by: Matheus Tavares > > > --- > > > drivers/staging/iio/adc/ad7280a.c | 9 ++++++++- > > > 1 file changed, 8 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c > > > index 19a5f244dcae..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 = "ad7280", > > > + .name = "ad7280a", > > > + .of_match_table = ad7280_of_match, > > > }, > > > .probe = ad7280_probe, > > > .id_table = ad7280_id, > > > > -- > > You received this message because you are subscribed to the Google Groups "Kernel USP" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-usp+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/kernel-usp/0e273486f1c4fb6249896225837cdf2da0fd2415.camel%40analog.com.