diff options
Diffstat (limited to 'miscutils/i2c_tools.c')
-rw-r--r-- | miscutils/i2c_tools.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c index e3741eeba..da26f5e19 100644 --- a/miscutils/i2c_tools.c +++ b/miscutils/i2c_tools.c | |||
@@ -120,6 +120,7 @@ static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd, | |||
120 | return ioctl(fd, I2C_SMBUS, &args); | 120 | return ioctl(fd, I2C_SMBUS, &args); |
121 | } | 121 | } |
122 | 122 | ||
123 | #if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT | ||
123 | static int32_t i2c_smbus_read_byte(int fd) | 124 | static int32_t i2c_smbus_read_byte(int fd) |
124 | { | 125 | { |
125 | union i2c_smbus_data data; | 126 | union i2c_smbus_data data; |
@@ -131,6 +132,7 @@ static int32_t i2c_smbus_read_byte(int fd) | |||
131 | 132 | ||
132 | return data.byte; | 133 | return data.byte; |
133 | } | 134 | } |
135 | #endif | ||
134 | 136 | ||
135 | #if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP | 137 | #if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP |
136 | static int32_t i2c_smbus_write_byte(int fd, uint8_t val) | 138 | static int32_t i2c_smbus_write_byte(int fd, uint8_t val) |