staging: iio: meter: ade7758_ring: Match alignment with open parenthesis
authorGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Mon, 19 Sep 2016 15:41:56 +0000 (18:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:43:32 +0000 (13:43 +0200)
Organize the parameters on a single line to improve the readability of
the code. Also, indent the line to match alignment with the open
parenthesis. Ensure that the modifications do not break the rule
of 80 characters per line.

Issues found by checkpatch.pl script.

Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/meter/ade7758_ring.c

index a6b76d4b1c80e26072e2edf0841bc3232eb1990a..57c213dfadcc702830723b3f2fd4f812a566fea0 100644 (file)
@@ -38,18 +38,14 @@ static int ade7758_write_waveform_type(struct device *dev, unsigned int type)
        int ret;
        u8 reg;
 
-       ret = ade7758_spi_read_reg_8(dev,
-                       ADE7758_WAVMODE,
-                       &reg);
+       ret = ade7758_spi_read_reg_8(dev, ADE7758_WAVMODE, &reg);
        if (ret)
                goto out;
 
        reg &= ~0x1F;
        reg |= type & 0x1F;
 
-       ret = ade7758_spi_write_reg_8(dev,
-                       ADE7758_WAVMODE,
-                       reg);
+       ret = ade7758_spi_write_reg_8(dev, ADE7758_WAVMODE, reg);
 out:
        return ret;
 }
@@ -94,7 +90,7 @@ static int ade7758_ring_preenable(struct iio_dev *indio_dev)
                                 indio_dev->masklength);
 
        ade7758_write_waveform_type(&indio_dev->dev,
-               indio_dev->channels[channel].address);
+                                   indio_dev->channels[channel].address);
 
        return 0;
 }