From 639cff5a73b1d140d1bcd4fd8f3e3b1e1b1e6841 Mon Sep 17 00:00:00 2001 From: Pascal Bauer Date: Fri, 30 Aug 2024 13:58:30 +0200 Subject: [PATCH] change copy to direct initialization --- fpga/lib/platform_card.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fpga/lib/platform_card.cpp b/fpga/lib/platform_card.cpp index 531b20e24..473e52117 100644 --- a/fpga/lib/platform_card.cpp +++ b/fpga/lib/platform_card.cpp @@ -37,18 +37,18 @@ void PlatformCard::connectVFIOtoIps( std::list> configuredIps) { // Read devices from Devicetree - const std::filesystem::path PLATFORM_DEVICES_DIRECTORY = - std::filesystem::path("/sys/bus/platform/devices"); + const std::filesystem::path PLATFORM_DEVICES_DIRECTORY( + "/sys/bus/platform/devices"); auto dtr = IpDeviceReader(PLATFORM_DEVICES_DIRECTORY); std::vector devices = dtr.devices; // Match devices and ips - auto matcher = DeviceIpMatcher(devices, configuredIps); + DeviceIpMatcher matcher(devices, configuredIps); std::vector, IpDevice>> device_ip_pair = matcher.match(); // Bind device to platform driver - auto driver = GenericDriver( + GenericDriver driver( std::filesystem::path("/sys/bus/platform/drivers/vfio-platform")); for (auto pair : device_ip_pair) { auto device = pair.second;