Fix typo and error check when retrieving pci information

Fix
1. typo PhysialDevicePciSpeedInfo to PhysicalDevicePciSpeedInfo
2. error check to verify open() call

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
Joshua Santosh Ranjan
2022-10-14 13:02:37 +00:00
committed by Compute-Runtime-Automation
parent 95505d87a5
commit b2c80be6f9
15 changed files with 50 additions and 38 deletions

View File

@@ -33,7 +33,7 @@ struct PhysicalDevicePciBusInfo {
uint32_t pciFunction = invalidValue;
};
struct PhyicalDevicePciSpeedInfo {
struct PhysicalDevicePciSpeedInfo {
static constexpr int32_t unknown = -1;
int32_t genVersion = unknown;
int32_t width = unknown;