aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/smbus_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device/smbus_def.h')
-rw-r--r--src/include/device/smbus_def.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/device/smbus_def.h b/src/include/device/smbus_def.h
index 0b07400b37..61d786107b 100644
--- a/src/include/device/smbus_def.h
+++ b/src/include/device/smbus_def.h
@@ -1,10 +1,12 @@
#ifndef DEVICE_SMBUS_DEF_H
#define DEVICE_SMBUS_DEF_H
+#include <types.h>
+
/* Error results are negative success is >= 0 */
-#define SMBUS_ERROR -1
-#define SMBUS_WAIT_UNTIL_READY_TIMEOUT -2
-#define SMBUS_WAIT_UNTIL_DONE_TIMEOUT -3
-#define SMBUS_WAIT_UNTIL_ACTIVE_TIMEOUT -4
+#define SMBUS_ERROR CB_ERR
+#define SMBUS_WAIT_UNTIL_READY_TIMEOUT CB_I2C_BUSY
+#define SMBUS_WAIT_UNTIL_DONE_TIMEOUT CB_I2C_TIMEOUT
+#define SMBUS_WAIT_UNTIL_ACTIVE_TIMEOUT CB_I2C_NO_DEVICE
#endif /* DEVICE_SMBUS_DEF_H */