Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1653544imu; Sun, 16 Dec 2018 05:57:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/WxSKKclwDj3Pzdst4eXApC9f2T60FtDAjo4Vgg4tB8OkW5LawBdMGLEXntIdR57eLBuDgE X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr9684483plb.182.1544968664571; Sun, 16 Dec 2018 05:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544968664; cv=none; d=google.com; s=arc-20160816; b=YVapwcOgIkPvAWKGXshfTUp2k6enqrxMjLJmYEJ2sEtKMxJT2SOJK6LBLcK9sCyPO0 s7V6A1W0fKBrDGTr8ZrMx6ucAiaHZVAvzGQiq7w7rmLgaqJvA0ncxFr5xAhndWmLBkIC +N3hrAgpW0J6eKR6fVsx23S+3RHRNdtNJzlxn4fBvVod4cT3UtbcmsoAr3gZTBroLxWl to9FCK9MLSOZfIWxNHL7HN9r4lvd43k4/TA1X5094XO78rt/ABXtGU862XX+LeSUuSYx mwqXT4e5tlkkSIcu8vWqdonZSFA6vH3un+dBLMggk9rYaschJgqzTBq6918dW0WYsUwY YUNQ== 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=LrRn19lfXBtTUPUZas7tuJ7iu2buH7BNI+jYOd1XBdM=; b=BqIPJqns5dsaTEgjEcn6wK9pvKSUir5f6ZOl0myEfOajCoCryJfgtYmuFcwoXzNP5x nGa/JZG5byOg1KJVJB2NUoEdiruLhFG/dhd5FPbiNa0prGDF9Bsg4gwM51XngF7igxX0 CoxxgjTKc4Mw+XYKE1fmpiCrlNeB4vwh2UyXJDz8qOZ04eY3EULzpy8fzEDBv7zPVtb6 GdIwhBaZudg47uT4rhU2YrPqcmuK0gt7LIlGKkFh5b04jztLnRpirpGdfmJKO426VO6s 2q6PCrp65cD+MxZV/sAqtzvWpHtUesBOJdp/2K/aKFOo3zZXJOiIU+v5AY5jGDpQTJRk Rbzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LsuCY3gn; 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 b34si8625136pld.305.2018.12.16.05.57.28; Sun, 16 Dec 2018 05:57:44 -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=LsuCY3gn; 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 S1730565AbeLPN4H (ORCPT + 99 others); Sun, 16 Dec 2018 08:56:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:34246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729859AbeLPN4G (ORCPT ); Sun, 16 Dec 2018 08:56:06 -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 774AD2086C; Sun, 16 Dec 2018 13:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544968565; bh=WLEGPaEa81shoZcav7OD4xxyMLWm+rT4FRH+Kv/6moY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LsuCY3gnC47263BEzi7mDVU66hlwAShH738jETAMy4lNsu74bTG8HBHvUX0WeNed7 Siit2ftIsRPP3e/E4B13LgoAnobb3IsL5lErQf63zXaG0ClnYHEnP223zrefGrzVsp KBT1rv/AOPLPGVfS+itW1CFvePUbe6y1CSjfXTzg= Date: Sun, 16 Dec 2018 13:56:00 +0000 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , , Subject: Re: [PATCH 09/11] staging: iio: adc: ad7606: Misc style fixes (no functional change) Message-ID: <20181216135600.68ecf711@archlinux> In-Reply-To: <1544705183-13288-10-git-send-email-stefan.popa@analog.com> References: <1544705183-13288-1-git-send-email-stefan.popa@analog.com> <1544705183-13288-10-git-send-email-stefan.popa@analog.com> X-Mailer: Claws Mail 3.17.2 (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 Thu, 13 Dec 2018 14:46:21 +0200 Stefan Popa wrote: > * Placed includes in alphabetical order > * Added brackets around num and mask through out for AD760X_CHANNEL > * Used single line comments where needed > * Removed extra lines and spaces > > Signed-off-by: Stefan Popa Looks fine, but unsurprisingly doesn't apply given I haven't taken all the precursors. Will pick up in v2. Thanks, Jonathan > --- > drivers/staging/iio/adc/ad7606.c | 27 ++++++++++++--------------- > drivers/staging/iio/adc/ad7606.h | 1 - > drivers/staging/iio/adc/ad7606_par.c | 27 ++++++++------------------- > drivers/staging/iio/adc/ad7606_spi.c | 16 ++++++++-------- > 4 files changed, 28 insertions(+), 43 deletions(-) > > diff --git a/drivers/staging/iio/adc/ad7606.c b/drivers/staging/iio/adc/ad7606.c > index 3355301..5733760 100644 > --- a/drivers/staging/iio/adc/ad7606.c > +++ b/drivers/staging/iio/adc/ad7606.c > @@ -5,25 +5,25 @@ > * Copyright 2011 Analog Devices Inc. > */ > > -#include > +#include > #include > -#include > -#include > -#include > -#include > #include > #include > -#include > -#include > +#include > +#include > #include > +#include > +#include > +#include > +#include > #include > > #include > -#include > #include > -#include > +#include > #include > #include > +#include > > #include "ad7606.h" > > @@ -249,8 +249,7 @@ static const struct attribute_group ad7606_attribute_group_range = { > .attrs = ad7606_attributes_range, > }; > > -#define AD760X_CHANNEL(num, mask) \ > - { \ > +#define AD760X_CHANNEL(num, mask) { \ > .type = IIO_VOLTAGE, \ > .indexed = 1, \ > .channel = num, \ > @@ -265,7 +264,7 @@ static const struct attribute_group ad7606_attribute_group_range = { > .storagebits = 16, \ > .endianness = IIO_CPU, \ > }, \ > - } > +} > > #define AD7605_CHANNEL(num) \ > AD760X_CHANNEL(num, 0) > @@ -294,9 +293,7 @@ static const struct iio_chan_spec ad7606_channels[] = { > }; > > static const struct ad7606_chip_info ad7606_chip_info_tbl[] = { > - /* > - * More devices added in future > - */ > + /* More devices added in future */ > [ID_AD7605_4] = { > .channels = ad7605_channels, > .num_channels = 5, > diff --git a/drivers/staging/iio/adc/ad7606.h b/drivers/staging/iio/adc/ad7606.h > index b238e9b..40433af 100644 > --- a/drivers/staging/iio/adc/ad7606.h > +++ b/drivers/staging/iio/adc/ad7606.h > @@ -14,7 +14,6 @@ > * @num_channels: number of channels > * @has_oversampling: whether the device has oversampling support > */ > - > struct ad7606_chip_info { > const struct iio_chan_spec *channels; > unsigned int num_channels; > diff --git a/drivers/staging/iio/adc/ad7606_par.c b/drivers/staging/iio/adc/ad7606_par.c > index ac0c7b0..32c7069 100644 > --- a/drivers/staging/iio/adc/ad7606_par.c > +++ b/drivers/staging/iio/adc/ad7606_par.c > @@ -26,7 +26,7 @@ static int ad7606_par16_read_block(struct device *dev, > } > > static const struct ad7606_bus_ops ad7606_par16_bops = { > - .read_block = ad7606_par16_read_block, > + .read_block = ad7606_par16_read_block, > }; > > static int ad7606_par8_read_block(struct device *dev, > @@ -41,7 +41,7 @@ static int ad7606_par8_read_block(struct device *dev, > } > > static const struct ad7606_bus_ops ad7606_par8_bops = { > - .read_block = ad7606_par8_read_block, > + .read_block = ad7606_par8_read_block, > }; > > static int ad7606_par_probe(struct platform_device *pdev) > @@ -72,22 +72,12 @@ static int ad7606_par_probe(struct platform_device *pdev) > } > > static const struct platform_device_id ad7606_driver_ids[] = { > - { > - .name = "ad7605-4", > - .driver_data = ID_AD7605_4, > - }, { > - .name = "ad7606-8", > - .driver_data = ID_AD7606_8, > - }, { > - .name = "ad7606-6", > - .driver_data = ID_AD7606_6, > - }, { > - .name = "ad7606-4", > - .driver_data = ID_AD7606_4, > - }, > + { .name = "ad7605-4", .driver_data = ID_AD7605_4, }, > + { .name = "ad7606-4", .driver_data = ID_AD7606_4, }, > + { .name = "ad7606-6", .driver_data = ID_AD7606_6, }, > + { .name = "ad7606-8", .driver_data = ID_AD7606_8, }, > { } > }; > - > MODULE_DEVICE_TABLE(platform, ad7606_driver_ids); > > static const struct of_device_id ad7606_of_match[] = { > @@ -103,12 +93,11 @@ static struct platform_driver ad7606_driver = { > .probe = ad7606_par_probe, > .id_table = ad7606_driver_ids, > .driver = { > - .name = "ad7606", > - .pm = AD7606_PM_OPS, > + .name = "ad7606", > + .pm = AD7606_PM_OPS, > .of_match_table = ad7606_of_match, > }, > }; > - > module_platform_driver(ad7606_driver); > > MODULE_AUTHOR("Michael Hennerich "); > diff --git a/drivers/staging/iio/adc/ad7606_spi.c b/drivers/staging/iio/adc/ad7606_spi.c > index 2608d34..b628389 100644 > --- a/drivers/staging/iio/adc/ad7606_spi.c > +++ b/drivers/staging/iio/adc/ad7606_spi.c > @@ -36,7 +36,7 @@ static int ad7606_spi_read_block(struct device *dev, > } > > static const struct ad7606_bus_ops ad7606_spi_bops = { > - .read_block = ad7606_spi_read_block, > + .read_block = ad7606_spi_read_block, > }; > > static int ad7606_spi_probe(struct spi_device *spi) > @@ -48,14 +48,14 @@ static int ad7606_spi_probe(struct spi_device *spi) > &ad7606_spi_bops); > } > > -static const struct spi_device_id ad7606_id[] = { > - {"ad7605-4", ID_AD7605_4}, > - {"ad7606-8", ID_AD7606_8}, > - {"ad7606-6", ID_AD7606_6}, > - {"ad7606-4", ID_AD7606_4}, > +static const struct spi_device_id ad7606_id_table[] = { > + { "ad7605-4", ID_AD7605_4 }, > + { "ad7606-4", ID_AD7606_4 }, > + { "ad7606-6", ID_AD7606_6 }, > + { "ad7606-8", ID_AD7606_8 }, > {} > }; > -MODULE_DEVICE_TABLE(spi, ad7606_id); > +MODULE_DEVICE_TABLE(spi, ad7606_id_table); > > static const struct of_device_id ad7606_of_match[] = { > { .compatible = "adi,ad7605-4" }, > @@ -73,7 +73,7 @@ static struct spi_driver ad7606_driver = { > .pm = AD7606_PM_OPS, > }, > .probe = ad7606_spi_probe, > - .id_table = ad7606_id, > + .id_table = ad7606_id_table, > }; > module_spi_driver(ad7606_driver); >