Commit dc791f8a authored by Daniel Mack's avatar Daniel Mack Committed by Linus Torvalds

lis3_spi: code cleanups

Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2cd9645e
...@@ -66,17 +66,16 @@ static int __devinit lis302dl_spi_probe(struct spi_device *spi) ...@@ -66,17 +66,16 @@ static int __devinit lis302dl_spi_probe(struct spi_device *spi)
if (ret < 0) if (ret < 0)
return ret; return ret;
lis3_dev.bus_priv = spi; lis3_dev.bus_priv = spi;
lis3_dev.init = lis3_spi_init; lis3_dev.init = lis3_spi_init;
lis3_dev.read = lis3_spi_read; lis3_dev.read = lis3_spi_read;
lis3_dev.write = lis3_spi_write; lis3_dev.write = lis3_spi_write;
lis3_dev.irq = spi->irq; lis3_dev.irq = spi->irq;
lis3_dev.ac = lis3lv02d_axis_normal; lis3_dev.ac = lis3lv02d_axis_normal;
lis3_dev.pdata = spi->dev.platform_data; lis3_dev.pdata = spi->dev.platform_data;
spi_set_drvdata(spi, &lis3_dev); spi_set_drvdata(spi, &lis3_dev);
ret = lis3lv02d_init_device(&lis3_dev); return lis3lv02d_init_device(&lis3_dev);
return ret;
} }
static int __devexit lis302dl_spi_remove(struct spi_device *spi) static int __devexit lis302dl_spi_remove(struct spi_device *spi)
......
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