Commit d3616e09 authored by Jagath Jog J's avatar Jagath Jog J Committed by Jonathan Cameron

iio: potentiometer: ds1803: Alignment to match the open parenthesis

Fix following checkpatch.pl check by removing blank space.
CHECK: Alignment should match open parenthesis.
Signed-off-by: default avatarJagath Jog J <jagathjog1996@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220223163525.13399-2-jagathjog1996@gmail.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 185897d0
...@@ -55,8 +55,8 @@ static const struct iio_chan_spec ds1803_channels[] = { ...@@ -55,8 +55,8 @@ static const struct iio_chan_spec ds1803_channels[] = {
}; };
static int ds1803_read_raw(struct iio_dev *indio_dev, static int ds1803_read_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan, struct iio_chan_spec const *chan,
int *val, int *val2, long mask) int *val, int *val2, long mask)
{ {
struct ds1803_data *data = iio_priv(indio_dev); struct ds1803_data *data = iio_priv(indio_dev);
int pot = chan->channel; int pot = chan->channel;
...@@ -66,7 +66,7 @@ static int ds1803_read_raw(struct iio_dev *indio_dev, ...@@ -66,7 +66,7 @@ static int ds1803_read_raw(struct iio_dev *indio_dev,
switch (mask) { switch (mask) {
case IIO_CHAN_INFO_RAW: case IIO_CHAN_INFO_RAW:
ret = i2c_master_recv(data->client, result, ret = i2c_master_recv(data->client, result,
indio_dev->num_channels); indio_dev->num_channels);
if (ret < 0) if (ret < 0)
return ret; return ret;
...@@ -83,8 +83,8 @@ static int ds1803_read_raw(struct iio_dev *indio_dev, ...@@ -83,8 +83,8 @@ static int ds1803_read_raw(struct iio_dev *indio_dev,
} }
static int ds1803_write_raw(struct iio_dev *indio_dev, static int ds1803_write_raw(struct iio_dev *indio_dev,
struct iio_chan_spec const *chan, struct iio_chan_spec const *chan,
int val, int val2, long mask) int val, int val2, long mask)
{ {
struct ds1803_data *data = iio_priv(indio_dev); struct ds1803_data *data = iio_priv(indio_dev);
int pot = chan->channel; int pot = chan->channel;
...@@ -109,8 +109,7 @@ static const struct iio_info ds1803_info = { ...@@ -109,8 +109,7 @@ static const struct iio_info ds1803_info = {
.write_raw = ds1803_write_raw, .write_raw = ds1803_write_raw,
}; };
static int ds1803_probe(struct i2c_client *client, static int ds1803_probe(struct i2c_client *client, const struct i2c_device_id *id)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct ds1803_data *data; struct ds1803_data *data;
......
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