staging: ade7759: Fix open parenthesis alignment
This patch fixes the CHECKs reported by checkpatch.pl for "alignment should match open parenthesis" Signed-off-by: rodrigosiqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
79e8a32d2a
commit
7fe2241c0e
@ -128,7 +128,8 @@ static int ade7759_spi_read_reg_8(struct device *dev,
|
||||
|
||||
ret = spi_w8r8(st->us, ADE7759_READ_REG(reg_address));
|
||||
if (ret < 0) {
|
||||
dev_err(&st->us->dev, "problem when reading 8 bit register 0x%02X",
|
||||
dev_err(&st->us->dev,
|
||||
"problem when reading 8 bit register 0x%02X",
|
||||
reg_address);
|
||||
return ret;
|
||||
}
|
||||
@ -179,7 +180,8 @@ static int ade7759_spi_read_reg_40(struct device *dev,
|
||||
|
||||
ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers));
|
||||
if (ret) {
|
||||
dev_err(&st->us->dev, "problem when reading 40 bit register 0x%02X",
|
||||
dev_err(&st->us->dev,
|
||||
"problem when reading 40 bit register 0x%02X",
|
||||
reg_address);
|
||||
goto error_ret;
|
||||
}
|
||||
@ -277,9 +279,7 @@ static int ade7759_reset(struct device *dev)
|
||||
int ret;
|
||||
u16 val;
|
||||
|
||||
ret = ade7759_spi_read_reg_16(dev,
|
||||
ADE7759_MODE,
|
||||
&val);
|
||||
ret = ade7759_spi_read_reg_16(dev, ADE7759_MODE, &val);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@ -365,9 +365,7 @@ static int ade7759_stop_device(struct device *dev)
|
||||
int ret;
|
||||
u16 val;
|
||||
|
||||
ret = ade7759_spi_read_reg_16(dev,
|
||||
ADE7759_MODE,
|
||||
&val);
|
||||
ret = ade7759_spi_read_reg_16(dev, ADE7759_MODE, &val);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "unable to power down the device, error: %d\n",
|
||||
ret);
|
||||
@ -411,9 +409,7 @@ static ssize_t ade7759_read_frequency(struct device *dev,
|
||||
u16 t;
|
||||
int sps;
|
||||
|
||||
ret = ade7759_spi_read_reg_16(dev,
|
||||
ADE7759_MODE,
|
||||
&t);
|
||||
ret = ade7759_spi_read_reg_16(dev, ADE7759_MODE, &t);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user