Lines Matching refs:pga_gain
161 u16 pga_gain; member
179 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift()
532 int vshunt_max = data->pga_gain * 40; in tmp51x_calibrate()
640 if (data->pga_gain == 8) { in tmp51x_pga_gain_to_reg()
642 } else if (data->pga_gain == 4) { in tmp51x_pga_gain_to_reg()
644 } else if (data->pga_gain == 2) { in tmp51x_pga_gain_to_reg()
646 } else if (data->pga_gain == 1) { in tmp51x_pga_gain_to_reg()
649 dev_err(dev, "ti,pga-gain is invalid: %u\n", data->pga_gain); in tmp51x_pga_gain_to_reg()
671 data->pga_gain = (ret >= 0) ? val : TMP51X_PGA_DEFAULT; in tmp51x_read_properties()
682 if (data->shunt_uohms > data->pga_gain * 40 * 1000 * 1000) { in tmp51x_read_properties()
684 data->shunt_uohms, data->pga_gain); in tmp51x_read_properties()
694 data->pga_gain = TMP51X_PGA_DEFAULT; in tmp51x_use_default()