/* Verify bus voltages for all ina230 nodes in DT.  */
static void test_shunt_cal(struct ina230_fixture *fixture)
/* Verify bus voltages for all ina230 nodes in DT.  */
static void test_shunt_cal(struct ina230_fixture *fixture)
{
	double shunt_cal = 5120e-6 / (fixture->current_lsb_uA * 1e-6 *
		fixture->rshunt_uOhms * 1e-6);
	uint32_t shunt_register_actual;
	uint16_t shunt_register_expected = (uint16_t)shunt_cal;
	zassert_ok(ina230_mock_get_register(fixture->mock->data, INA230_REG_CALIB,
		&shunt_register_actual));
	zexpect_within(shunt_register_expected, shunt_register_actual, 1,
		"Expected %d, got %d", shunt_register_expected, shunt_register_actual);
}