Searched refs:lis3_dev (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/misc/lis3lv02d/
H A Dlis3lv02d_spi.c81 lis3_dev.bus_priv = spi; lis302dl_spi_probe()
82 lis3_dev.init = lis3_spi_init; lis302dl_spi_probe()
83 lis3_dev.read = lis3_spi_read; lis302dl_spi_probe()
84 lis3_dev.write = lis3_spi_write; lis302dl_spi_probe()
85 lis3_dev.irq = spi->irq; lis302dl_spi_probe()
86 lis3_dev.ac = lis3lv02d_axis_normal; lis302dl_spi_probe()
87 lis3_dev.pdata = spi->dev.platform_data; lis302dl_spi_probe()
91 lis3_dev.of_node = spi->dev.of_node; lis302dl_spi_probe()
92 ret = lis3lv02d_init_dt(&lis3_dev); lis302dl_spi_probe()
97 spi_set_drvdata(spi, &lis3_dev); lis302dl_spi_probe()
99 return lis3lv02d_init_device(&lis3_dev); lis302dl_spi_probe()
108 return lis3lv02d_remove_fs(&lis3_dev); lis302dl_spi_remove()
118 lis3lv02d_poweroff(&lis3_dev); lis3lv02d_spi_suspend()
H A Dlis3lv02d_i2c.c124 lis3_dev.of_node = client->dev.of_node; lis3lv02d_i2c_probe()
125 ret = lis3lv02d_init_dt(&lis3_dev); lis3lv02d_i2c_probe()
128 pdata = lis3_dev.pdata; lis3lv02d_i2c_probe()
136 lis3_dev.blkread = lis3_i2c_blockread; lis3lv02d_i2c_probe()
154 lis3_dev.regulators[0].supply = reg_vdd; lis3lv02d_i2c_probe()
155 lis3_dev.regulators[1].supply = reg_vdd_io; lis3lv02d_i2c_probe()
157 ARRAY_SIZE(lis3_dev.regulators), lis3lv02d_i2c_probe()
158 lis3_dev.regulators); lis3lv02d_i2c_probe()
162 lis3_dev.pdata = pdata; lis3lv02d_i2c_probe()
163 lis3_dev.bus_priv = client; lis3lv02d_i2c_probe()
164 lis3_dev.init = lis3_i2c_init; lis3lv02d_i2c_probe()
165 lis3_dev.read = lis3_i2c_read; lis3lv02d_i2c_probe()
166 lis3_dev.write = lis3_i2c_write; lis3lv02d_i2c_probe()
167 lis3_dev.irq = client->irq; lis3lv02d_i2c_probe()
168 lis3_dev.ac = lis3lv02d_axis_map; lis3lv02d_i2c_probe()
169 lis3_dev.pm_dev = &client->dev; lis3lv02d_i2c_probe()
171 i2c_set_clientdata(client, &lis3_dev); lis3lv02d_i2c_probe()
174 lis3_reg_ctrl(&lis3_dev, LIS3_REG_ON); lis3lv02d_i2c_probe()
176 ret = lis3lv02d_init_device(&lis3_dev); lis3lv02d_i2c_probe()
178 lis3_reg_ctrl(&lis3_dev, LIS3_REG_OFF); lis3lv02d_i2c_probe()
185 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators), lis3lv02d_i2c_probe()
186 lis3_dev.regulators); lis3lv02d_i2c_probe()
202 lis3lv02d_remove_fs(&lis3_dev); lis3lv02d_i2c_remove()
205 lis3_dev.regulators); lis3lv02d_i2c_remove()
H A Dlis3lv02d.c97 struct lis3lv02d lis3_dev = { variable in typeref:struct:lis3lv02d
98 .misc_wait = __WAIT_QUEUE_HEAD_INITIALIZER(lis3_dev.misc_wait),
100 EXPORT_SYMBOL_GPL(lis3_dev); variable
125 module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644);
H A Dlis3lv02d.h331 extern struct lis3lv02d lis3_dev;
/linux-4.1.27/drivers/platform/x86/
H A Dhp_accel.c162 lis3_dev.ac = *((union axis_conversion *)dmi->driver_data); lis3lv02d_dmi_matched()
262 struct acpi_device *dev = lis3_dev.bus_priv; hpled_set()
302 lis3lv02d_get_resource, &lis3_dev.irq); lis3lv02d_enum_resources()
343 lis3_dev.bus_priv = device; lis3lv02d_add()
344 lis3_dev.init = lis3lv02d_acpi_init; lis3lv02d_add()
345 lis3_dev.read = lis3lv02d_acpi_read; lis3lv02d_add()
346 lis3_dev.write = lis3lv02d_acpi_write; lis3lv02d_add()
349 device->driver_data = &lis3_dev; lis3lv02d_add()
355 if (lis3_dev.ac.x && lis3_dev.ac.y && lis3_dev.ac.z) { lis3lv02d_add()
357 lis3_dev.ac.x, lis3_dev.ac.y, lis3_dev.ac.z); lis3lv02d_add()
360 lis3_dev.ac = lis3lv02d_axis_normal; lis3lv02d_add()
364 ret = lis3lv02d_init_device(&lis3_dev); lis3lv02d_add()
376 lis3lv02d_joystick_disable(&lis3_dev); lis3lv02d_add()
377 lis3lv02d_poweroff(&lis3_dev); lis3lv02d_add()
391 lis3lv02d_joystick_disable(&lis3_dev); lis3lv02d_remove()
392 lis3lv02d_poweroff(&lis3_dev); lis3lv02d_remove()
397 return lis3lv02d_remove_fs(&lis3_dev); lis3lv02d_remove()
405 lis3lv02d_poweroff(&lis3_dev); lis3lv02d_suspend()
411 lis3lv02d_poweron(&lis3_dev); lis3lv02d_resume()

Completed in 117 milliseconds