Searched refs:g_mode (Results 1 – 1 of 1) sorted by relevance
68 enum gain_mode g_mode; member142 outbuf[offset] |= FIELD_PREP(MCP4728_GAIN_MASK, ch->g_mode); in mcp4728_store_eeprom()203 outbuf[1] |= FIELD_PREP(MCP4728_GAIN_MASK, ch->g_mode); in mcp4728_program_channel_cfg()312 int g_mode = data->chdata[channel].g_mode; in mcp4728_get_scale() local317 if (g_mode == MCP4728_GAIN_X1) { in mcp4728_get_scale()352 data->chdata[channel].g_mode = MCP4728_GAIN_X1; in mcp4728_set_scale()356 data->chdata[channel].g_mode = MCP4728_GAIN_X2; in mcp4728_set_scale()527 ch->g_mode = FIELD_GET(MCP4728_GAIN_MASK, r2); in mcp4728_init_channels_data()