summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/accel
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2018-03-29 14:43:23 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-03-30 13:50:33 +0100
commit0a9d5dce5ba4bcf5367f7d9aa351de34ff3e5c30 (patch)
tree8f129bd3f3c0688dcf528bc49440c3eedd315e33 /drivers/staging/iio/accel
parent55cdd2ecf6b941bfdef751caa255cc820e1ccf70 (diff)
downloadlinux-0a9d5dce5ba4bcf5367f7d9aa351de34ff3e5c30.tar.gz
linux-0a9d5dce5ba4bcf5367f7d9aa351de34ff3e5c30.tar.bz2
linux-0a9d5dce5ba4bcf5367f7d9aa351de34ff3e5c30.zip
Staging: iio: adis16209: Prefer reverse christmas tree ordering
Prefer reverse christmas tree ordering of declarations to improve readability. Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/staging/iio/accel')
-rw-r--r--drivers/staging/iio/accel/adis16209.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c
index f6f60db65307..2a102f1e50c6 100644
--- a/drivers/staging/iio/accel/adis16209.c
+++ b/drivers/staging/iio/accel/adis16209.c
@@ -270,9 +270,9 @@ static const struct adis_data adis16209_data = {
static int adis16209_probe(struct spi_device *spi)
{
- int ret;
- struct adis *st;
struct iio_dev *indio_dev;
+ struct adis *st;
+ int ret;
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
if (!indio_dev)