Searched refs:sense_res (Results 1 – 3 of 3) sorted by relevance
118 int sense_res; in ds2782_get_current() local134 sense_res = 1000 / sense_res_raw; in ds2782_get_current()137 sense_res); in ds2782_get_current()141 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current()
217 int ret, sense_res; in ds2780_get_current() local233 sense_res = 1000 / sense_res_raw; in ds2780_get_current()255 *current_uA = current_raw * (DS2780_CURRENT_UNITS / sense_res); in ds2780_get_current()262 int ret, sense_res; in ds2780_get_accumulated_current() local278 sense_res = 1000 / sense_res_raw; in ds2780_get_accumulated_current()292 *accumulated_current = current_raw * (DS2780_CHARGE_UNITS / sense_res); in ds2780_get_accumulated_current()
218 int ret, sense_res; in ds2781_get_current() local234 sense_res = 1000 / sense_res_raw; in ds2781_get_current()256 *current_uA = current_raw * (DS2781_CURRENT_UNITS / sense_res); in ds2781_get_current()263 int ret, sense_res; in ds2781_get_accumulated_current() local279 sense_res = 1000 / sense_res_raw; in ds2781_get_accumulated_current()293 *accumulated_current = current_raw * (DS2781_CHARGE_UNITS / sense_res); in ds2781_get_accumulated_current()