From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Cameron Subject: Re: [PATCH 4/5] iio:adc:lpc32xx Cleanup headers Date: Mon, 18 Feb 2019 14:07:38 +0000 Message-ID: <20190218140738.0000582a@huawei.com> References: <20190208160944.13281-1-gregory.clement@bootlin.com> <20190208160944.13281-5-gregory.clement@bootlin.com> <20190209171646.49c75afc@archlinux> <87r2c92h34.fsf@FE-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <87r2c92h34.fsf@FE-laptop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Gregory CLEMENT Cc: devicetree@vger.kernel.org, Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Hartmut Knaack , Jonathan Cameron List-Id: devicetree@vger.kernel.org On Fri, 15 Feb 2019 16:42:55 +0100 Gregory CLEMENT wrote: > Hi Jonathan, > = > On sam., f=E9vr. 09 2019, Jonathan Cameron wrote: > = > > On Fri, 8 Feb 2019 17:09:43 +0100 > > Gregory CLEMENT wrote: > > = > >> A few headers was useless: remove them, and also sort them in alphabet= ic > >> order. > >> = > >> Signed-off-by: Gregory CLEMENT = > > Hmm. Given the headers in question are mostly only useless (I think) > > in the sense they are always included by something else, I'm > > not sure this patch is worth the churn. > > > > It's also tricky to see which ones were actually removed > > given the combination with sorting. > > I think it's just kernel.h, device.h, err.h all of which > > are used in various ways and often directly included. = > = > Actually, as I needed to add a header, I wanted to sort the list to put > it in the right place and then some of the header looked superfluous > that why I remove some of them. For example there was no reason to use > slab.h or of.h. Agreed on those two. I missed them probably because of the re organization being combined with them. No specific allocations except via interfaces from elsewhere and no direct use of the devicetree stuff, so fine to drop them. > = > > > > The other one is the iio/sysfs.h file. That one we could > > do to eventually kill off entirely, so happy to see that > > one alone go. = > = > I am nit sure to know what do you want with this patch. Break it in two. Drop the unwanted ones first, then reorganize. That way the diff is easy to read. Clearly I missed some changes on my first read as it stands! Jonathan > = > Gregory > = > = > > > > Jonathan > > = > >> --- > >> drivers/iio/adc/lpc32xx_adc.c | 15 ++++----------- > >> 1 file changed, 4 insertions(+), 11 deletions(-) > >> = > >> diff --git a/drivers/iio/adc/lpc32xx_adc.c b/drivers/iio/adc/lpc32xx_a= dc.c > >> index e361c1532a75..f391c1e10136 100644 > >> --- a/drivers/iio/adc/lpc32xx_adc.c > >> +++ b/drivers/iio/adc/lpc32xx_adc.c > >> @@ -7,20 +7,13 @@ > >> * Copyright (C) 2011, 2012 Roland Stigge > >> */ > >> = > >> -#include > >> -#include > >> -#include > >> -#include > >> -#include > >> -#include > >> -#include > >> #include > >> -#include > >> #include > >> -#include > >> - > >> #include > >> -#include > >> +#include > >> +#include > >> +#include > >> +#include > >> = > >> /* > >> * LPC32XX registers definitions = > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel = > =