Lines Matching full:gain
65 unsigned int gain; member
122 *val = voltage_uv * st->gain; in ad7780_read_raw()
148 unsigned int full_scale, gain; in ad7780_write_raw() local
160 gain = DIV_ROUND_CLOSEST_ULL(vref, full_scale); in ad7780_write_raw()
161 gain = DIV_ROUND_CLOSEST(gain, val2); in ad7780_write_raw()
162 st->gain = gain; in ad7780_write_raw()
163 if (gain < AD7780_GAIN_MIDPOINT) in ad7780_write_raw()
164 gain = 0; in ad7780_write_raw()
166 gain = 1; in ad7780_write_raw()
167 gpiod_set_value(st->gain_gpio, gain); in ad7780_write_raw()
195 st->gain = ad778x_gain[raw_sample & AD7780_GAIN]; in ad7780_postprocess_sample()
283 "adi,gain", in ad7780_init_gpios()
287 dev_err(dev, "Failed to request gain GPIO: %d\n", ret); in ad7780_init_gpios()
319 st->gain = 1; in ad7780_probe()