Searched refs:ams_i2c_write (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/drivers/macintosh/ams/ |
D | ams-i2c.c | 87 static int ams_i2c_write(u8 reg, u8 value) in ams_i2c_write() function 97 ams_i2c_write(AMS_COMMAND, cmd); in ams_i2c_cmd() 119 ams_i2c_write(AMS_CTRLX, val); in ams_i2c_set_irq() 128 ams_i2c_write(AMS_CTRLY, val); in ams_i2c_set_irq() 137 ams_i2c_write(AMS_CTRLZ, val); in ams_i2c_set_irq() 144 ams_i2c_write(AMS_FREEFALL, 0); in ams_i2c_clear_irq() 147 ams_i2c_write(AMS_SHOCK, 0); in ams_i2c_clear_irq() 185 ams_i2c_write(AMS_CTRL1, 0x02); in ams_i2c_probe() 186 ams_i2c_write(AMS_CTRL2, 0x85); in ams_i2c_probe() 187 ams_i2c_write(AMS_CTRL3, 0x01); in ams_i2c_probe() [all …]
|