Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: iio: meter: ade7758_ring: Match alignment with open parenthesis

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>

authored by

Georgiana Rodica Chelu and committed by
Greg Kroah-Hartman
89237e06 106d43f1

+3 -7
+3 -7
drivers/staging/iio/meter/ade7758_ring.c
··· 38 38 int ret; 39 39 u8 reg; 40 40 41 - ret = ade7758_spi_read_reg_8(dev, 42 - ADE7758_WAVMODE, 43 - &reg); 41 + ret = ade7758_spi_read_reg_8(dev, ADE7758_WAVMODE, &reg); 44 42 if (ret) 45 43 goto out; 46 44 47 45 reg &= ~0x1F; 48 46 reg |= type & 0x1F; 49 47 50 - ret = ade7758_spi_write_reg_8(dev, 51 - ADE7758_WAVMODE, 52 - reg); 48 + ret = ade7758_spi_write_reg_8(dev, ADE7758_WAVMODE, reg); 53 49 out: 54 50 return ret; 55 51 } ··· 90 94 indio_dev->masklength); 91 95 92 96 ade7758_write_waveform_type(&indio_dev->dev, 93 - indio_dev->channels[channel].address); 97 + indio_dev->channels[channel].address); 94 98 95 99 return 0; 96 100 }