Commit 75aa306c authored by Himanshu Jha's avatar Himanshu Jha Committed by Jonathan Cameron

Staging: iio: accel: adis16201: Add a blank space before returns

Adding a blank space before/after some returns improves readability.
Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 189cef99
...@@ -232,6 +232,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev, ...@@ -232,6 +232,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev,
*val = val16; *val = val16;
return IIO_VAL_INT; return IIO_VAL_INT;
} }
return -EINVAL; return -EINVAL;
} }
...@@ -262,6 +263,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev, ...@@ -262,6 +263,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev,
addr = adis16201_addresses[chan->scan_index]; addr = adis16201_addresses[chan->scan_index];
return adis_write_reg_16(st, addr, val16); return adis_write_reg_16(st, addr, val16);
} }
return -EINVAL; return -EINVAL;
} }
...@@ -336,6 +338,7 @@ static int adis16201_probe(struct spi_device *spi) ...@@ -336,6 +338,7 @@ static int adis16201_probe(struct spi_device *spi)
ret = adis_init(st, indio_dev, spi, &adis16201_data); ret = adis_init(st, indio_dev, spi, &adis16201_data);
if (ret) if (ret)
return ret; return ret;
ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL); ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL);
if (ret) if (ret)
return ret; return ret;
...@@ -348,6 +351,7 @@ static int adis16201_probe(struct spi_device *spi) ...@@ -348,6 +351,7 @@ static int adis16201_probe(struct spi_device *spi)
ret = iio_device_register(indio_dev); ret = iio_device_register(indio_dev);
if (ret < 0) if (ret < 0)
goto error_cleanup_buffer_trigger; goto error_cleanup_buffer_trigger;
return 0; return 0;
error_cleanup_buffer_trigger: error_cleanup_buffer_trigger:
......
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