Lines Matching refs:lis3
25 static int lis3_spi_read(struct lis3lv02d *lis3, int reg, u8 *v) in lis3_spi_read() argument
27 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read()
36 static int lis3_spi_write(struct lis3lv02d *lis3, int reg, u8 val) in lis3_spi_write() argument
39 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write()
43 static int lis3_spi_init(struct lis3lv02d *lis3) in lis3_spi_init() argument
49 ret = lis3->read(lis3, CTRL_REG1, ®); in lis3_spi_init()
54 return lis3->write(lis3, CTRL_REG1, reg); in lis3_spi_init()
101 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis302dl_spi_remove() local
102 lis3lv02d_joystick_disable(lis3); in lis302dl_spi_remove()
103 lis3lv02d_poweroff(lis3); in lis302dl_spi_remove()
112 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis3lv02d_spi_suspend() local
114 if (!lis3->pdata || !lis3->pdata->wakeup_flags) in lis3lv02d_spi_suspend()
123 struct lis3lv02d *lis3 = spi_get_drvdata(spi); in lis3lv02d_spi_resume() local
125 if (!lis3->pdata || !lis3->pdata->wakeup_flags) in lis3lv02d_spi_resume()
126 lis3lv02d_poweron(lis3); in lis3lv02d_spi_resume()