Searched refs:mcp3911_scale_table (Results 1 – 1 of 1) sorted by relevance
89 static u32 mcp3911_scale_table[MCP3911_NUM_SCALES][2]; variable306 *vals = (int *)mcp3911_scale_table; in mcp3911_read_avail()307 *length = ARRAY_SIZE(mcp3911_scale_table) * 2; in mcp3911_read_avail()344 *val = mcp3911_scale_table[ilog2(adc->gain[channel->channel])][0]; in mcp3911_read_raw()345 *val2 = mcp3911_scale_table[ilog2(adc->gain[channel->channel])][1]; in mcp3911_read_raw()362 if (val == mcp3911_scale_table[i][0] && in mcp3911_write_raw()363 val2 == mcp3911_scale_table[i][1]) { in mcp3911_write_raw()404 mcp3911_scale_table[i][0] = 0; in mcp3911_calc_scale_table()405 mcp3911_scale_table[i][1] = tmp; in mcp3911_calc_scale_table()