staging: iio: ad5933: align arguments on new line with open parenthesis
Issue found by checkpatch: "Alignment should match open parenthesis." Multiple lines are also reduced to a single line where possible. Signed-off-by: Katie Dunne <kdunne@mail.ccsf.edu> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
becf05e748
commit
a8886770dc
|
@ -156,8 +156,7 @@ static const struct iio_chan_spec ad5933_channels[] = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int ad5933_i2c_write(struct i2c_client *client,
|
static int ad5933_i2c_write(struct i2c_client *client, u8 reg, u8 len, u8 *data)
|
||||||
u8 reg, u8 len, u8 *data)
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -171,8 +170,7 @@ static int ad5933_i2c_write(struct i2c_client *client,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ad5933_i2c_read(struct i2c_client *client,
|
static int ad5933_i2c_read(struct i2c_client *client, u8 reg, u8 len, u8 *data)
|
||||||
u8 reg, u8 len, u8 *data)
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -269,7 +267,8 @@ static int ad5933_setup(struct ad5933_state *st)
|
||||||
dat = cpu_to_be16(st->settling_cycles);
|
dat = cpu_to_be16(st->settling_cycles);
|
||||||
|
|
||||||
ret = ad5933_i2c_write(st->client,
|
ret = ad5933_i2c_write(st->client,
|
||||||
AD5933_REG_SETTLING_CYCLES, 2, (u8 *)&dat);
|
AD5933_REG_SETTLING_CYCLES,
|
||||||
|
2, (u8 *)&dat);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
@ -451,7 +450,8 @@ static ssize_t ad5933_store(struct device *dev,
|
||||||
|
|
||||||
dat = cpu_to_be16(val);
|
dat = cpu_to_be16(val);
|
||||||
ret = ad5933_i2c_write(st->client,
|
ret = ad5933_i2c_write(st->client,
|
||||||
AD5933_REG_SETTLING_CYCLES, 2, (u8 *)&dat);
|
AD5933_REG_SETTLING_CYCLES,
|
||||||
|
2, (u8 *)&dat);
|
||||||
break;
|
break;
|
||||||
case AD5933_FREQ_POINTS:
|
case AD5933_FREQ_POINTS:
|
||||||
val = clamp(val, (u16)0, (u16)511);
|
val = clamp(val, (u16)0, (u16)511);
|
||||||
|
@ -545,8 +545,8 @@ static int ad5933_read_raw(struct iio_dev *indio_dev,
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = ad5933_i2c_read(st->client,
|
ret = ad5933_i2c_read(st->client,
|
||||||
AD5933_REG_TEMP_DATA, 2,
|
AD5933_REG_TEMP_DATA,
|
||||||
(u8 *)&dat);
|
2, (u8 *)&dat);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out;
|
goto out;
|
||||||
mutex_unlock(&indio_dev->mlock);
|
mutex_unlock(&indio_dev->mlock);
|
||||||
|
|
Loading…
Reference in New Issue