Lines Matching refs:ams_info
80 return i2c_smbus_read_byte_data(ams_info.i2c_client, reg); in ams_i2c_read()
85 return i2c_smbus_write_byte_data(ams_info.i2c_client, reg, value); in ams_i2c_write()
165 if (unlikely(ams_info.has_device)) in ams_i2c_probe()
168 ams_info.i2c_client = client; in ams_i2c_probe()
223 ams_info.has_device = 1; in ams_i2c_probe()
235 if (ams_info.has_device) { in ams_i2c_remove()
246 ams_info.has_device = 0; in ams_i2c_remove()
258 ams_info.of_node = np; in ams_i2c_init()
259 ams_info.exit = ams_i2c_exit; in ams_i2c_init()
260 ams_info.get_vendor = ams_i2c_get_vendor; in ams_i2c_init()
261 ams_info.get_xyz = ams_i2c_get_xyz; in ams_i2c_init()
262 ams_info.clear_irq = ams_i2c_clear_irq; in ams_i2c_init()
263 ams_info.bustype = BUS_I2C; in ams_i2c_init()