diff options
-rw-r--r-- | miscutils/i2c_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index a70573ebe..5f41a72ec 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c | |||
@@ -107,6 +107,7 @@ static ALWAYS_INLINE void *itoptr(int i) | |||
107 | return (void*)(intptr_t)i; | 107 | return (void*)(intptr_t)i; |
108 | } | 108 | } |
109 | 109 | ||
110 | #if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT | ||
110 | static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd, | 111 | static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd, |
111 | int size, union i2c_smbus_data *data) | 112 | int size, union i2c_smbus_data *data) |
112 | { | 113 | { |
@@ -120,7 +121,6 @@ static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd, | |||
120 | return ioctl(fd, I2C_SMBUS, &args); | 121 | return ioctl(fd, I2C_SMBUS, &args); |
121 | } | 122 | } |
122 | 123 | ||
123 | #if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT | ||
124 | static int32_t i2c_smbus_read_byte(int fd) | 124 | static int32_t i2c_smbus_read_byte(int fd) |
125 | { | 125 | { |
126 | union i2c_smbus_data data; | 126 | union i2c_smbus_data data; |