Home
last modified time | relevance | path

Searched refs:tot_gain (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/
H A Dindustrialio-gts-helper.c63 int tot_gain; in gain_get_scale_fraction() local
65 tot_gain = iio_gts_get_gain(max, scale); in gain_get_scale_fraction()
66 if (tot_gain < 0) in gain_get_scale_fraction()
67 return tot_gain; in gain_get_scale_fraction()
69 *unknown = tot_gain / known; in gain_get_scale_fraction()
72 if (!*unknown || *unknown * known != tot_gain) in gain_get_scale_fraction()