Initialize variables

Some commands were returning uninitialized data in failure
cases.  This initializes the variables to avoid the garbage
data.

Tested:
Ran each PECI command and confirmed that they each still
behave correctly.

Change-Id: I1b774d038e20ca17c62cf0586a715767f373dc8a
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
1 file changed
tree: 4678e9b478bd4b5285969bec19a45607643db7d6
  1. linux/
  2. .clang-format
  3. .clang-ignore
  4. CMakeLists.txt
  5. LICENSE
  6. MAINTAINERS
  7. peci.c
  8. peci.h
  9. peci_cmds.c
  10. README.md
README.md

libpeci

libpeci is a library that provides various APIs to interface with the IOCTLs provided by the PECI driver in the OpenBMC kernel. Currently available here:

https://github.com/openbmc/linux/blob/dev-5.4/include/uapi/linux/peci-ioctl.h

peci_cmds

This repo also includes a peci_cmds command-line utility with functions that map to the libpeci APIs. It can be used to test PECI functionality across the library, driver, and hardware.