summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2023-07-10 17:27:26 +0200
committerDenys Vlasenko2023-07-10 17:27:26 +0200
commit69d33db445964727b053068cfaa4d417767f8960 (patch)
tree07d047439323d389b65214943366e5de956bcee8
parent5353df91cba7b397b9407701681708d0a1518df6 (diff)
downloadbusybox-69d33db445964727b053068cfaa4d417767f8960.zip
busybox-69d33db445964727b053068cfaa4d417767f8960.tar.gz
i2ctransfer: fix build warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/i2c_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index a70573e..5f41a72 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -107,6 +107,7 @@ static ALWAYS_INLINE void *itoptr(int i)
return (void*)(intptr_t)i;
}
+#if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT
static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd,
int size, union i2c_smbus_data *data)
{
@@ -120,7 +121,6 @@ static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd,
return ioctl(fd, I2C_SMBUS, &args);
}
-#if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT
static int32_t i2c_smbus_read_byte(int fd)
{
union i2c_smbus_data data;