Log a PEL for communication, presence mismatch, and safe state errors

Add code to log a PEL in various error scenarios. Refactor some of the
error handling to get the return code out of the driver.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: Ifd91cfc063718e484ec8886df8357d115c6b41e3
diff --git a/occ_presence.cpp b/occ_presence.cpp
index e06ecb8..dd92725 100644
--- a/occ_presence.cpp
+++ b/occ_presence.cpp
@@ -51,7 +51,7 @@
                             .c_str());
         if (callBack)
         {
-            callBack(true);
+            callBack(occsPresent);
         }
     }
 }