staging: iio: ad2s1210: fix 'assignment operator' style checks
This patch fixes all "Assignment operator '=' should be on the previous line" checks found in ad2s1210.c with checkpatch.pl. Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
2e00b53352
commit
5c93f3ce98
@ -301,8 +301,8 @@ static ssize_t ad2s1210_store_control(struct device *dev,
|
|||||||
"ad2s1210: write control register fail\n");
|
"ad2s1210: write control register fail\n");
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
}
|
}
|
||||||
st->resolution
|
st->resolution =
|
||||||
= ad2s1210_resolution_value[data & AD2S1210_SET_RESOLUTION];
|
ad2s1210_resolution_value[data & AD2S1210_SET_RESOLUTION];
|
||||||
if (st->pdata->gpioin) {
|
if (st->pdata->gpioin) {
|
||||||
data = ad2s1210_read_resolution_pin(st);
|
data = ad2s1210_read_resolution_pin(st);
|
||||||
if (data != st->resolution)
|
if (data != st->resolution)
|
||||||
@ -363,8 +363,8 @@ static ssize_t ad2s1210_store_resolution(struct device *dev,
|
|||||||
dev_err(dev, "ad2s1210: setting resolution fail\n");
|
dev_err(dev, "ad2s1210: setting resolution fail\n");
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
}
|
}
|
||||||
st->resolution
|
st->resolution =
|
||||||
= ad2s1210_resolution_value[data & AD2S1210_SET_RESOLUTION];
|
ad2s1210_resolution_value[data & AD2S1210_SET_RESOLUTION];
|
||||||
if (st->pdata->gpioin) {
|
if (st->pdata->gpioin) {
|
||||||
data = ad2s1210_read_resolution_pin(st);
|
data = ad2s1210_read_resolution_pin(st);
|
||||||
if (data != st->resolution)
|
if (data != st->resolution)
|
||||||
|
Loading…
Reference in New Issue
Block a user