lis3lv02d_spi.c (80c8ae289266529445fad030fabf5fcf01ccda0d) | lis3lv02d_spi.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84) |
---|---|
1/* 2 * lis3lv02d_spi - SPI glue layer for lis3lv02d 3 * 4 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * publishhed by the Free Software Foundation. --- 86 unchanged lines hidden (view full) --- 95 return ret; 96 } 97#endif 98 spi_set_drvdata(spi, &lis3_dev); 99 100 return lis3lv02d_init_device(&lis3_dev); 101} 102 | 1/* 2 * lis3lv02d_spi - SPI glue layer for lis3lv02d 3 * 4 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * publishhed by the Free Software Foundation. --- 86 unchanged lines hidden (view full) --- 95 return ret; 96 } 97#endif 98 spi_set_drvdata(spi, &lis3_dev); 99 100 return lis3lv02d_init_device(&lis3_dev); 101} 102 |
103static int __devexit lis302dl_spi_remove(struct spi_device *spi) | 103static int lis302dl_spi_remove(struct spi_device *spi) |
104{ 105 struct lis3lv02d *lis3 = spi_get_drvdata(spi); 106 lis3lv02d_joystick_disable(lis3); 107 lis3lv02d_poweroff(lis3); 108 109 return lis3lv02d_remove_fs(&lis3_dev); 110} 111 --- 44 unchanged lines hidden --- | 104{ 105 struct lis3lv02d *lis3 = spi_get_drvdata(spi); 106 lis3lv02d_joystick_disable(lis3); 107 lis3lv02d_poweroff(lis3); 108 109 return lis3lv02d_remove_fs(&lis3_dev); 110} 111 --- 44 unchanged lines hidden --- |