Lines Matching refs:shunt_uohms
167 u32 shunt_uohms; member
199 *val = DIV_ROUND_CLOSEST(*val * 10000, data->shunt_uohms); in tmp51x_get_value()
255 val = DIV_ROUND_CLOSEST(val * data->shunt_uohms, 10000); in tmp51x_set_value()
463 if (!data->shunt_uohms) in tmp51x_is_visible()
477 if (!data->shunt_uohms) in tmp51x_is_visible()
542 if (data->shunt_uohms == 0) in tmp51x_calibrate()
546 data->shunt_uohms); in tmp51x_calibrate()
555 div = DIV_ROUND_CLOSEST_ULL(data->curr_lsb_ua * data->shunt_uohms, in tmp51x_calibrate()
662 data->shunt_uohms = (ret >= 0) ? val : TMP51X_SHUNT_VALUE_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()
695 data->shunt_uohms = TMP51X_SHUNT_VALUE_DEFAULT; in tmp51x_use_default()