remove IPMI_CC

Since IPMI_CC declared in api.h has been gradually deprecated,
this submission will use ipmi::cc in api.hpp instead.

Change-Id: Iaaf74396f59ba924753398c136e232c5b8fcd796
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/src/usb-dbg.cpp b/src/usb-dbg.cpp
index d125016..70b69a0 100644
--- a/src/usb-dbg.cpp
+++ b/src/usb-dbg.cpp
@@ -1004,11 +1004,11 @@
                                    uint8_t* buffer)
 {
     if (cur_panel > panelNum || cur_panel < std::to_underlying(panel::MAIN))
-        return IPMI_CC_PARM_OUT_OF_RANGE;
+        return ipmi::ccParmOutOfRange;
 
     // No more item; End of item list
     if (item > panels[cur_panel].item_num)
-        return IPMI_CC_PARM_OUT_OF_RANGE;
+        return ipmi::ccParmOutOfRange;
 
     switch (operation)
     {
@@ -1023,7 +1023,7 @@
             item = 0;
             break;
         default:
-            return IPMI_CC_PARM_OUT_OF_RANGE;
+            return ipmi::ccParmOutOfRange;
     }
 
     buffer[0] = cur_panel;
@@ -1036,7 +1036,7 @@
                     buffer[2]);
     }
     *count = buffer[2] + 3;
-    return IPMI_CC_OK;
+    return ipmi::ccSuccess;
 }
 
 } // end of namespace ipmi