Searched refs:g_mode (Results 1 – 1 of 1) sorted by relevance
68 enum gain_mode g_mode; member141 outbuf[offset] |= FIELD_PREP(MCP4728_GAIN_MASK, ch->g_mode); in mcp4728_store_eeprom()202 outbuf[1] |= FIELD_PREP(MCP4728_GAIN_MASK, ch->g_mode); in mcp4728_program_channel_cfg()311 int g_mode = data->chdata[channel].g_mode; in mcp4728_get_scale() local316 if (g_mode == MCP4728_GAIN_X1) { in mcp4728_get_scale()351 data->chdata[channel].g_mode = MCP4728_GAIN_X1; in mcp4728_set_scale()355 data->chdata[channel].g_mode = MCP4728_GAIN_X2; in mcp4728_set_scale()520 ch->g_mode = FIELD_GET(MCP4728_GAIN_MASK, r2); in mcp4728_init_channels_data()