Lines Matching refs:hx711_gain_to_scale
28 struct hx711_gain_to_scale { struct
43 static struct hx711_gain_to_scale hx711_gain_to_scale[HX711_GAIN_MAX] = { variable
54 if (hx711_gain_to_scale[i].gain == gain) in hx711_get_gain_to_pulse()
55 return hx711_gain_to_scale[i].gain_pulse; in hx711_get_gain_to_pulse()
64 if (hx711_gain_to_scale[i].gain == gain) in hx711_get_gain_to_scale()
65 return hx711_gain_to_scale[i].scale; in hx711_get_gain_to_scale()
74 if (hx711_gain_to_scale[i].scale == scale) in hx711_get_scale_to_gain()
75 return hx711_gain_to_scale[i].gain; in hx711_get_scale_to_gain()
395 if (hx711_gain_to_scale[i].channel == channel) in hx711_scale_available_show()
397 hx711_gain_to_scale[i].scale); in hx711_scale_available_show()
529 hx711_gain_to_scale[i].scale = in hx711_probe()
530 ret / hx711_gain_to_scale[i].gain / 1678; in hx711_probe()