From: Alison Schofield <amsfield22@gmail.com>
To: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] staging: iio: meter: Match alignment with open parenthesis
Date: Sun, 18 Sep 2016 22:21:23 -0700 [thread overview]
Message-ID: <20160919052122.GA2699@d830.WORKGROUP> (raw)
In-Reply-To: <20160918210056.GA6241@fireworks>
On Mon, Sep 19, 2016 at 12:00:56AM +0300, Georgiana Rodica Chelu wrote:
> This patch fixes the following checkpatch.pl check:
> CHECK: Alignment should match open parenthesis
>
> Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Hi Georgiana,
Nice patch. I think there's a patch for this already in the IIO queue,
so probably won't get taken. In IIO, the driver name is typically
mentioned in the Subject line - as in:
staging: iio: meter: ade5933: ....
alisons
> ---
> drivers/staging/iio/meter/ade7753.c | 43 ++++++++++++++-----------------------
> 1 file changed, 16 insertions(+), 27 deletions(-)
>
> diff --git a/drivers/staging/iio/meter/ade7753.c b/drivers/staging/iio/meter/ade7753.c
> index 4b5f05f..e3f6deb 100644
> --- a/drivers/staging/iio/meter/ade7753.c
> +++ b/drivers/staging/iio/meter/ade7753.c
> @@ -42,8 +42,7 @@ static int ade7753_spi_write_reg_8(struct device *dev,
> }
>
> static int ade7753_spi_write_reg_16(struct device *dev,
> - u8 reg_address,
> - u16 value)
> + u8 reg_address, u16 value)
> {
> int ret;
> struct iio_dev *indio_dev = dev_to_iio_dev(dev);
> @@ -60,8 +59,7 @@ static int ade7753_spi_write_reg_16(struct device *dev,
> }
>
> static int ade7753_spi_read_reg_8(struct device *dev,
> - u8 reg_address,
> - u8 *val)
> + u8 reg_address, u8 *val)
> {
> struct iio_dev *indio_dev = dev_to_iio_dev(dev);
> struct ade7753_state *st = iio_priv(indio_dev);
> @@ -70,7 +68,7 @@ static int ade7753_spi_read_reg_8(struct device *dev,
> ret = spi_w8r8(st->us, ADE7753_READ_REG(reg_address));
> if (ret < 0) {
> dev_err(&st->us->dev, "problem when reading 8 bit register 0x%02X",
> - reg_address);
> + reg_address);
> return ret;
> }
> *val = ret;
> @@ -79,8 +77,7 @@ static int ade7753_spi_read_reg_8(struct device *dev,
> }
>
> static int ade7753_spi_read_reg_16(struct device *dev,
> - u8 reg_address,
> - u16 *val)
> + u8 reg_address, u16 *val)
> {
> struct iio_dev *indio_dev = dev_to_iio_dev(dev);
> struct ade7753_state *st = iio_priv(indio_dev);
> @@ -99,8 +96,7 @@ static int ade7753_spi_read_reg_16(struct device *dev,
> }
>
> static int ade7753_spi_read_reg_24(struct device *dev,
> - u8 reg_address,
> - u32 *val)
> + u8 reg_address, u32 *val)
> {
> struct iio_dev *indio_dev = dev_to_iio_dev(dev);
> struct ade7753_state *st = iio_priv(indio_dev);
> @@ -123,7 +119,7 @@ static int ade7753_spi_read_reg_24(struct device *dev,
> ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers));
> if (ret) {
> dev_err(&st->us->dev, "problem when reading 24 bit register 0x%02X",
> - reg_address);
> + reg_address);
> goto error_ret;
> }
> *val = (st->rx[0] << 16) | (st->rx[1] << 8) | st->rx[2];
> @@ -134,8 +130,7 @@ error_ret:
> }
>
> static ssize_t ade7753_read_8bit(struct device *dev,
> - struct device_attribute *attr,
> - char *buf)
> + struct device_attribute *attr, char *buf)
> {
> int ret;
> u8 val;
> @@ -149,8 +144,7 @@ static ssize_t ade7753_read_8bit(struct device *dev,
> }
>
> static ssize_t ade7753_read_16bit(struct device *dev,
> - struct device_attribute *attr,
> - char *buf)
> + struct device_attribute *attr, char *buf)
> {
> int ret;
> u16 val;
> @@ -164,8 +158,7 @@ static ssize_t ade7753_read_16bit(struct device *dev,
> }
>
> static ssize_t ade7753_read_24bit(struct device *dev,
> - struct device_attribute *attr,
> - char *buf)
> + struct device_attribute *attr, char *buf)
> {
> int ret;
> u32 val;
> @@ -179,9 +172,8 @@ static ssize_t ade7753_read_24bit(struct device *dev,
> }
>
> static ssize_t ade7753_write_8bit(struct device *dev,
> - struct device_attribute *attr,
> - const char *buf,
> - size_t len)
> + struct device_attribute *attr,
> + const char *buf, size_t len)
> {
> struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
> int ret;
> @@ -197,9 +189,8 @@ error_ret:
> }
>
> static ssize_t ade7753_write_16bit(struct device *dev,
> - struct device_attribute *attr,
> - const char *buf,
> - size_t len)
> + struct device_attribute *attr,
> + const char *buf, size_t len)
> {
> struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
> int ret;
> @@ -384,8 +375,7 @@ err_ret:
> }
>
> static ssize_t ade7753_read_frequency(struct device *dev,
> - struct device_attribute *attr,
> - char *buf)
> + struct device_attribute *attr, char *buf)
> {
> int ret;
> u16 t;
> @@ -402,9 +392,8 @@ static ssize_t ade7753_read_frequency(struct device *dev,
> }
>
> static ssize_t ade7753_write_frequency(struct device *dev,
> - struct device_attribute *attr,
> - const char *buf,
> - size_t len)
> + struct device_attribute *attr,
> + const char *buf, size_t len)
> {
> struct iio_dev *indio_dev = dev_to_iio_dev(dev);
> struct ade7753_state *st = iio_priv(indio_dev);
> --
> 2.7.4
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160918210056.GA6241%40fireworks.
> For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2016-09-19 5:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-18 21:00 [PATCH] staging: iio: meter: Match alignment with open parenthesis Georgiana Rodica Chelu
2016-09-19 5:21 ` Alison Schofield [this message]
2016-09-19 5:32 ` [Outreachy kernel] " Julia Lawall
2016-09-19 9:20 ` Georgiana Chelu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160919052122.GA2699@d830.WORKGROUP \
--to=amsfield22@gmail.com \
--cc=georgiana.chelu93@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.