Commit 4ae2f37a authored by Harinath Nampally's avatar Harinath Nampally Committed by Jonathan Cameron

staging: iio: meter: Fix the identations for proper alignments.

This patch fixes below checkpatch.pl kind of warnings:
CHECK: Alignment should match open parenthesis
Signed-off-by: default avatarHarinath Nampally <harinath922@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent b2d2d2bf
...@@ -107,9 +107,8 @@ static int ade7753_spi_write_reg_8(struct device *dev, ...@@ -107,9 +107,8 @@ static int ade7753_spi_write_reg_8(struct device *dev,
return ret; return ret;
} }
static int ade7753_spi_write_reg_16(struct device *dev, static int ade7753_spi_write_reg_16(struct device *dev, u8 reg_address,
u8 reg_address, u16 value)
u16 value)
{ {
int ret; int ret;
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
...@@ -126,8 +125,8 @@ static int ade7753_spi_write_reg_16(struct device *dev, ...@@ -126,8 +125,8 @@ static int ade7753_spi_write_reg_16(struct device *dev,
} }
static int ade7753_spi_read_reg_8(struct device *dev, static int ade7753_spi_read_reg_8(struct device *dev,
u8 reg_address, u8 reg_address,
u8 *val) u8 *val)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct ade7753_state *st = iio_priv(indio_dev); struct ade7753_state *st = iio_priv(indio_dev);
...@@ -136,7 +135,7 @@ static int ade7753_spi_read_reg_8(struct device *dev, ...@@ -136,7 +135,7 @@ static int ade7753_spi_read_reg_8(struct device *dev,
ret = spi_w8r8(st->us, ADE7753_READ_REG(reg_address)); ret = spi_w8r8(st->us, ADE7753_READ_REG(reg_address));
if (ret < 0) { 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); reg_address);
return ret; return ret;
} }
*val = ret; *val = ret;
...@@ -145,8 +144,8 @@ static int ade7753_spi_read_reg_8(struct device *dev, ...@@ -145,8 +144,8 @@ static int ade7753_spi_read_reg_8(struct device *dev,
} }
static int ade7753_spi_read_reg_16(struct device *dev, static int ade7753_spi_read_reg_16(struct device *dev,
u8 reg_address, u8 reg_address,
u16 *val) u16 *val)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct ade7753_state *st = iio_priv(indio_dev); struct ade7753_state *st = iio_priv(indio_dev);
...@@ -165,8 +164,8 @@ static int ade7753_spi_read_reg_16(struct device *dev, ...@@ -165,8 +164,8 @@ static int ade7753_spi_read_reg_16(struct device *dev,
} }
static int ade7753_spi_read_reg_24(struct device *dev, static int ade7753_spi_read_reg_24(struct device *dev,
u8 reg_address, u8 reg_address,
u32 *val) u32 *val)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct ade7753_state *st = iio_priv(indio_dev); struct ade7753_state *st = iio_priv(indio_dev);
...@@ -189,7 +188,7 @@ static int ade7753_spi_read_reg_24(struct device *dev, ...@@ -189,7 +188,7 @@ static int ade7753_spi_read_reg_24(struct device *dev,
ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers)); ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers));
if (ret) { if (ret) {
dev_err(&st->us->dev, "problem when reading 24 bit register 0x%02X", dev_err(&st->us->dev, "problem when reading 24 bit register 0x%02X",
reg_address); reg_address);
goto error_ret; goto error_ret;
} }
*val = (st->rx[0] << 16) | (st->rx[1] << 8) | st->rx[2]; *val = (st->rx[0] << 16) | (st->rx[1] << 8) | st->rx[2];
...@@ -200,8 +199,8 @@ static int ade7753_spi_read_reg_24(struct device *dev, ...@@ -200,8 +199,8 @@ static int ade7753_spi_read_reg_24(struct device *dev,
} }
static ssize_t ade7753_read_8bit(struct device *dev, static ssize_t ade7753_read_8bit(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) char *buf)
{ {
int ret; int ret;
u8 val; u8 val;
...@@ -215,8 +214,8 @@ static ssize_t ade7753_read_8bit(struct device *dev, ...@@ -215,8 +214,8 @@ static ssize_t ade7753_read_8bit(struct device *dev,
} }
static ssize_t ade7753_read_16bit(struct device *dev, static ssize_t ade7753_read_16bit(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) char *buf)
{ {
int ret; int ret;
u16 val; u16 val;
...@@ -230,8 +229,8 @@ static ssize_t ade7753_read_16bit(struct device *dev, ...@@ -230,8 +229,8 @@ static ssize_t ade7753_read_16bit(struct device *dev,
} }
static ssize_t ade7753_read_24bit(struct device *dev, static ssize_t ade7753_read_24bit(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) char *buf)
{ {
int ret; int ret;
u32 val; u32 val;
...@@ -245,9 +244,9 @@ static ssize_t ade7753_read_24bit(struct device *dev, ...@@ -245,9 +244,9 @@ static ssize_t ade7753_read_24bit(struct device *dev,
} }
static ssize_t ade7753_write_8bit(struct device *dev, static ssize_t ade7753_write_8bit(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
const char *buf, const char *buf,
size_t len) size_t len)
{ {
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
int ret; int ret;
...@@ -263,9 +262,9 @@ static ssize_t ade7753_write_8bit(struct device *dev, ...@@ -263,9 +262,9 @@ static ssize_t ade7753_write_8bit(struct device *dev,
} }
static ssize_t ade7753_write_16bit(struct device *dev, static ssize_t ade7753_write_16bit(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
const char *buf, const char *buf,
size_t len) size_t len)
{ {
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
int ret; int ret;
...@@ -450,8 +449,8 @@ static int ade7753_initial_setup(struct iio_dev *indio_dev) ...@@ -450,8 +449,8 @@ static int ade7753_initial_setup(struct iio_dev *indio_dev)
} }
static ssize_t ade7753_read_frequency(struct device *dev, static ssize_t ade7753_read_frequency(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) char *buf)
{ {
int ret; int ret;
u16 t; u16 t;
...@@ -468,9 +467,9 @@ static ssize_t ade7753_read_frequency(struct device *dev, ...@@ -468,9 +467,9 @@ static ssize_t ade7753_read_frequency(struct device *dev,
} }
static ssize_t ade7753_write_frequency(struct device *dev, static ssize_t ade7753_write_frequency(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
const char *buf, const char *buf,
size_t len) size_t len)
{ {
struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_dev *indio_dev = dev_to_iio_dev(dev);
struct ade7753_state *st = iio_priv(indio_dev); struct ade7753_state *st = iio_priv(indio_dev);
......
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