1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef DEVICE_SMBUS_DEF_H 4 #define DEVICE_SMBUS_DEF_H 5 6 #include <types.h> 7 8 /* Error results are negative success is >= 0 */ 9 #define SMBUS_ERROR CB_ERR 10 #define SMBUS_WAIT_UNTIL_READY_TIMEOUT CB_I2C_BUSY 11 #define SMBUS_WAIT_UNTIL_DONE_TIMEOUT CB_I2C_TIMEOUT 12 #define SMBUS_WAIT_UNTIL_ACTIVE_TIMEOUT CB_I2C_NO_DEVICE 13 14 #endif /* DEVICE_SMBUS_DEF_H */ 15