summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2018-03-29 14:44:42 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-03-30 13:50:34 +0100
commitec4187783f857597435311f6692bbf8badb9e299 (patch)
tree347986c610f07685cba98115194da25159e013bb
parent0a9d5dce5ba4bcf5367f7d9aa351de34ff3e5c30 (diff)
Staging: iio: adis16209: Add a blank line after return statements
Add a blank line after return statements to improve the code readability. Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/staging/iio/accel/adis16209.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
index 2a102f1e50c6..1aed1b85f2a8 100644
--- a/drivers/staging/iio/accel/adis16209.c
+++ b/drivers/staging/iio/accel/adis16209.c
@@ -277,6 +277,7 @@ static int adis16209_probe(struct spi_device *spi)
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
if (!indio_dev)
return -ENOMEM;
+
st = iio_priv(indio_dev);
spi_set_drvdata(spi, indio_dev);
@@ -290,6 +291,7 @@ static int adis16209_probe(struct spi_device *spi)
ret = adis_init(st, indio_dev, spi, &adis16209_data);
if (ret)
return ret;
+
ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL);
if (ret)
return ret;