google-ipmi-sys: Convert input to use std::span<const uint8_t>

Change-Id: I533de34c04e3d2577cb9076add441153b2994c30
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/pcie_i2c.cpp b/pcie_i2c.cpp
index 46088a5..2c7af4d 100644
--- a/pcie_i2c.cpp
+++ b/pcie_i2c.cpp
@@ -20,6 +20,7 @@
 #include <cstdint>
 #include <cstring>
 #include <ipmid/api-types.hpp>
+#include <span>
 #include <string>
 #include <tuple>
 #include <vector>
@@ -38,7 +39,7 @@
     uint8_t entry;
 } __attribute__((packed));
 
-Resp pcieSlotCount(const std::vector<std::uint8_t>&, HandlerInterface* handler)
+Resp pcieSlotCount(std::span<const uint8_t>, HandlerInterface* handler)
 {
     // If there are already entries in the vector, clear them.
     handler->buildI2cPcieMapping();
@@ -50,7 +51,7 @@
                                    std::vector<std::uint8_t>{value});
 }
 
-Resp pcieSlotI2cBusMapping(const std::vector<std::uint8_t>& data,
+Resp pcieSlotI2cBusMapping(std::span<const uint8_t> data,
                            HandlerInterface* handler)
 {
     struct PcieSlotI2cBusMappingRequest request;