Lines Matching refs:ams_info
79 return i2c_smbus_read_byte_data(ams_info.i2c_client, reg); in ams_i2c_read()
84 return i2c_smbus_write_byte_data(ams_info.i2c_client, reg, value); in ams_i2c_write()
163 if (unlikely(ams_info.has_device)) in ams_i2c_probe()
166 ams_info.i2c_client = client; in ams_i2c_probe()
221 ams_info.has_device = 1; in ams_i2c_probe()
233 if (ams_info.has_device) { in ams_i2c_remove()
244 ams_info.has_device = 0; in ams_i2c_remove()
256 ams_info.of_node = np; in ams_i2c_init()
257 ams_info.exit = ams_i2c_exit; in ams_i2c_init()
258 ams_info.get_vendor = ams_i2c_get_vendor; in ams_i2c_init()
259 ams_info.get_xyz = ams_i2c_get_xyz; in ams_i2c_init()
260 ams_info.clear_irq = ams_i2c_clear_irq; in ams_i2c_init()
261 ams_info.bustype = BUS_I2C; in ams_i2c_init()