summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko2022-01-17 23:59:46 +0100
committerDenys Vlasenko2022-01-17 23:59:46 +0100
commit8ad2acf352d790d0bdd792b8e126d58a088451f3 (patch)
tree46e69b3e9d5d0c32dde637d8db28fabff404d428 /miscutils
parent12566e7f9b5e5c5d445bc4d36991d134b431dc6c (diff)
downloadbusybox-8ad2acf352d790d0bdd792b8e126d58a088451f3.zip
busybox-8ad2acf352d790d0bdd792b8e126d58a088451f3.tar.gz
fix "defined but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/i2c_tools.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index e3741ee..da26f5e 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,
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;
@@ -131,6 +132,7 @@ static int32_t i2c_smbus_read_byte(int fd)
return data.byte;
}
+#endif
#if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP
static int32_t i2c_smbus_write_byte(int fd, uint8_t val)