Home
last modified time | relevance | path

Searched refs:inoutbuf (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/dac/
H A Dmcp4725.c97 u8 inoutbuf[3]; in mcp4725_store_eeprom() local
108 inoutbuf[0] = 0x60; /* write EEPROM */ in mcp4725_store_eeprom()
109 inoutbuf[0] |= data->ref_mode << 3; in mcp4725_store_eeprom()
110 inoutbuf[0] |= data->powerdown ? ((data->powerdown_mode + 1) << 1) : 0; in mcp4725_store_eeprom()
111 inoutbuf[1] = data->dac_value >> 4; in mcp4725_store_eeprom()
112 inoutbuf[2] = (data->dac_value & 0xf) << 4; in mcp4725_store_eeprom()
114 ret = i2c_master_send(data->client, inoutbuf, 3); in mcp4725_store_eeprom()
123 ret = i2c_master_recv(data->client, inoutbuf, 3); in mcp4725_store_eeprom()
129 if (inoutbuf[0] & 0x80) in mcp4725_store_eeprom()