Commit 08c95f9a authored by Tolga Ceylan's avatar Tolga Ceylan Committed by Greg Kroah-Hartman

Staging: iio: meter: ade7854-i2c: code style improvements

Code reformatting based on checkpatch.pl with --strict:
Alignment should match open paranthesis cases corrected
Signed-off-by: default avatarTolga Ceylan <tolga.ceylan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 361008f2
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include "ade7854.h" #include "ade7854.h"
static int ade7854_i2c_write_reg_8(struct device *dev, static int ade7854_i2c_write_reg_8(struct device *dev,
u16 reg_address, u16 reg_address,
u8 value) u8 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);
...@@ -35,8 +35,8 @@ static int ade7854_i2c_write_reg_8(struct device *dev, ...@@ -35,8 +35,8 @@ static int ade7854_i2c_write_reg_8(struct device *dev,
} }
static int ade7854_i2c_write_reg_16(struct device *dev, static int ade7854_i2c_write_reg_16(struct device *dev,
u16 reg_address, u16 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);
...@@ -55,8 +55,8 @@ static int ade7854_i2c_write_reg_16(struct device *dev, ...@@ -55,8 +55,8 @@ static int ade7854_i2c_write_reg_16(struct device *dev,
} }
static int ade7854_i2c_write_reg_24(struct device *dev, static int ade7854_i2c_write_reg_24(struct device *dev,
u16 reg_address, u16 reg_address,
u32 value) u32 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);
...@@ -76,8 +76,8 @@ static int ade7854_i2c_write_reg_24(struct device *dev, ...@@ -76,8 +76,8 @@ static int ade7854_i2c_write_reg_24(struct device *dev,
} }
static int ade7854_i2c_write_reg_32(struct device *dev, static int ade7854_i2c_write_reg_32(struct device *dev,
u16 reg_address, u16 reg_address,
u32 value) u32 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);
...@@ -98,8 +98,8 @@ static int ade7854_i2c_write_reg_32(struct device *dev, ...@@ -98,8 +98,8 @@ static int ade7854_i2c_write_reg_32(struct device *dev,
} }
static int ade7854_i2c_read_reg_8(struct device *dev, static int ade7854_i2c_read_reg_8(struct device *dev,
u16 reg_address, u16 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 ade7854_state *st = iio_priv(indio_dev); struct ade7854_state *st = iio_priv(indio_dev);
...@@ -124,8 +124,8 @@ static int ade7854_i2c_read_reg_8(struct device *dev, ...@@ -124,8 +124,8 @@ static int ade7854_i2c_read_reg_8(struct device *dev,
} }
static int ade7854_i2c_read_reg_16(struct device *dev, static int ade7854_i2c_read_reg_16(struct device *dev,
u16 reg_address, u16 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 ade7854_state *st = iio_priv(indio_dev); struct ade7854_state *st = iio_priv(indio_dev);
...@@ -150,8 +150,8 @@ static int ade7854_i2c_read_reg_16(struct device *dev, ...@@ -150,8 +150,8 @@ static int ade7854_i2c_read_reg_16(struct device *dev,
} }
static int ade7854_i2c_read_reg_24(struct device *dev, static int ade7854_i2c_read_reg_24(struct device *dev,
u16 reg_address, u16 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 ade7854_state *st = iio_priv(indio_dev); struct ade7854_state *st = iio_priv(indio_dev);
...@@ -176,8 +176,8 @@ static int ade7854_i2c_read_reg_24(struct device *dev, ...@@ -176,8 +176,8 @@ static int ade7854_i2c_read_reg_24(struct device *dev,
} }
static int ade7854_i2c_read_reg_32(struct device *dev, static int ade7854_i2c_read_reg_32(struct device *dev,
u16 reg_address, u16 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 ade7854_state *st = iio_priv(indio_dev); struct ade7854_state *st = iio_priv(indio_dev);
...@@ -202,7 +202,7 @@ static int ade7854_i2c_read_reg_32(struct device *dev, ...@@ -202,7 +202,7 @@ static int ade7854_i2c_read_reg_32(struct device *dev,
} }
static int ade7854_i2c_probe(struct i2c_client *client, static int ade7854_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
int ret; int ret;
struct ade7854_state *st; struct ade7854_state *st;
......
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