Staging: iio: ad7746: Adjust arguments to match open parenthesis
This patch clears all checkpatch.pl CHECKS, about alignment not matching open parenthesis, whenever it is possible without going beyond 80 columns. Signed-off-by: David Veenstra <davidjulianveenstra@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
1237a3d4a0
commit
d90f21408b
|
@ -217,7 +217,7 @@ static const unsigned char ad7746_cap_filter_rate_table[][2] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int ad7746_select_channel(struct iio_dev *indio_dev,
|
static int ad7746_select_channel(struct iio_dev *indio_dev,
|
||||||
struct iio_chan_spec const *chan)
|
struct iio_chan_spec const *chan)
|
||||||
{
|
{
|
||||||
struct ad7746_chip_info *chip = iio_priv(indio_dev);
|
struct ad7746_chip_info *chip = iio_priv(indio_dev);
|
||||||
int ret, delay, idx;
|
int ret, delay, idx;
|
||||||
|
@ -487,13 +487,13 @@ static int ad7746_write_raw(struct iio_dev *indio_dev,
|
||||||
AD7746_CAPDAC_DACP(val) | AD7746_CAPDAC_DACEN : 0;
|
AD7746_CAPDAC_DACP(val) | AD7746_CAPDAC_DACEN : 0;
|
||||||
|
|
||||||
ret = i2c_smbus_write_byte_data(chip->client,
|
ret = i2c_smbus_write_byte_data(chip->client,
|
||||||
AD7746_REG_CAPDACA,
|
AD7746_REG_CAPDACA,
|
||||||
chip->capdac[chan->channel][0]);
|
chip->capdac[chan->channel][0]);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out;
|
goto out;
|
||||||
ret = i2c_smbus_write_byte_data(chip->client,
|
ret = i2c_smbus_write_byte_data(chip->client,
|
||||||
AD7746_REG_CAPDACB,
|
AD7746_REG_CAPDACB,
|
||||||
chip->capdac[chan->channel][1]);
|
chip->capdac[chan->channel][1]);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
@ -675,7 +675,7 @@ static const struct iio_info ad7746_info = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int ad7746_probe(struct i2c_client *client,
|
static int ad7746_probe(struct i2c_client *client,
|
||||||
const struct i2c_device_id *id)
|
const struct i2c_device_id *id)
|
||||||
{
|
{
|
||||||
struct ad7746_platform_data *pdata = client->dev.platform_data;
|
struct ad7746_platform_data *pdata = client->dev.platform_data;
|
||||||
struct ad7746_chip_info *chip;
|
struct ad7746_chip_info *chip;
|
||||||
|
|
Loading…
Reference in New Issue