Searched refs:nano_ms2 (Results 1 – 1 of 1) sorted by relevance
196 int64_t nano_ms2 = (ms2->val1 * 1000000LL + ms2->val2) * 1000LL; in sensor_ms2_to_mg() local198 if (nano_ms2 > 0) { in sensor_ms2_to_mg()199 return (nano_ms2 + SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_mg()201 return (nano_ms2 - SENSOR_G / 2) / SENSOR_G; in sensor_ms2_to_mg()