lis3_spi: code cleanups
authorDaniel Mack <daniel@caiaq.de>
Tue, 22 Sep 2009 00:04:45 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:49 +0000 (07:17 -0700)
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/lis3lv02d_spi.c

index 2bc84930a428c3ac15dff9b10c5ca0389e1dbd92..82ebca5a699c7954d9f0a02aa19b47fb73bc2f4c 100644 (file)
@@ -66,17 +66,16 @@ static int __devinit lis302dl_spi_probe(struct spi_device *spi)
        if (ret < 0)
                return ret;
 
-       lis3_dev.bus_priv = spi;
-       lis3_dev.init = lis3_spi_init;
-       lis3_dev.read = lis3_spi_read;
-       lis3_dev.write = lis3_spi_write;
-       lis3_dev.irq = spi->irq;
-       lis3_dev.ac = lis3lv02d_axis_normal;
-       lis3_dev.pdata = spi->dev.platform_data;
+       lis3_dev.bus_priv       = spi;
+       lis3_dev.init           = lis3_spi_init;
+       lis3_dev.read           = lis3_spi_read;
+       lis3_dev.write          = lis3_spi_write;
+       lis3_dev.irq            = spi->irq;
+       lis3_dev.ac             = lis3lv02d_axis_normal;
+       lis3_dev.pdata          = spi->dev.platform_data;
        spi_set_drvdata(spi, &lis3_dev);
 
-       ret = lis3lv02d_init_device(&lis3_dev);
-       return ret;
+       return lis3lv02d_init_device(&lis3_dev);
 }
 
 static int __devexit lis302dl_spi_remove(struct spi_device *spi)