Staging: iio: adis16209: Prefer reverse christmas tree ordering
authorShreeya Patel <shreeya.patel23498@gmail.com>
Thu, 29 Mar 2018 09:13:23 +0000 (14:43 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 30 Mar 2018 12:50:33 +0000 (13:50 +0100)
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>
drivers/staging/iio/accel/adis16209.c

index f6f60db..2a102f1 100644 (file)
@@ -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)