Commit 89237e06 authored by Georgiana Rodica Chelu's avatar Georgiana Rodica Chelu Committed by Greg Kroah-Hartman

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: default avatarGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 106d43f1
...@@ -38,18 +38,14 @@ static int ade7758_write_waveform_type(struct device *dev, unsigned int type) ...@@ -38,18 +38,14 @@ static int ade7758_write_waveform_type(struct device *dev, unsigned int type)
int ret; int ret;
u8 reg; u8 reg;
ret = ade7758_spi_read_reg_8(dev, ret = ade7758_spi_read_reg_8(dev, ADE7758_WAVMODE, &reg);
ADE7758_WAVMODE,
&reg);
if (ret) if (ret)
goto out; goto out;
reg &= ~0x1F; reg &= ~0x1F;
reg |= type & 0x1F; reg |= type & 0x1F;
ret = ade7758_spi_write_reg_8(dev, ret = ade7758_spi_write_reg_8(dev, ADE7758_WAVMODE, reg);
ADE7758_WAVMODE,
reg);
out: out:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment