Home
last modified time | relevance | path

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

/linux/drivers/iio/adc/
H A Dmcp3564.c374 unsigned int hwgain; member
844 *val = adc->scale_tbls[adc->hwgain][0]; in mcp3564_read_raw()
845 *val2 = adc->scale_tbls[adc->hwgain][1]; in mcp3564_read_raw()
886 unsigned int hwgain; in mcp3564_write_raw() local
960 for (hwgain = 0; hwgain < MCP3564_MAX_PGA; hwgain++) in mcp3564_write_raw()
961 if (val == adc->scale_tbls[hwgain][0] && in mcp3564_write_raw()
962 val2 == adc->scale_tbls[hwgain][1]) in mcp3564_write_raw()
965 if (hwgain == MCP3564_MAX_PGA) in mcp3564_write_raw()
968 if (hwgain == adc->hwgain) in mcp3564_write_raw()
974 FIELD_PREP(MCP3564_CONFIG2_HARDWARE_GAIN_MASK, hwgain)); in mcp3564_write_raw()
[all …]