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/entity_name.cpp b/entity_name.cpp
index 3702ad5..854b1dc 100644
--- a/entity_name.cpp
+++ b/entity_name.cpp
@@ -21,6 +21,7 @@
 #include <cstdint>
 #include <cstring>
 #include <ipmid/api-types.hpp>
+#include <span>
 #include <string>
 #include <vector>
 
@@ -45,8 +46,7 @@
     uint8_t entityInstance;
 } __attribute__((packed));
 
-Resp getEntityName(const std::vector<std::uint8_t>& data,
-                   HandlerInterface* handler)
+Resp getEntityName(std::span<const uint8_t> data, HandlerInterface* handler)
 {
     struct GetEntityNameRequest request;