diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-17 23:59:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-17 23:59:46 +0100 |
commit | 8ad2acf352d790d0bdd792b8e126d58a088451f3 (patch) | |
tree | 46e69b3e9d5d0c32dde637d8db28fabff404d428 /miscutils/i2c_tools.c | |
parent | 12566e7f9b5e5c5d445bc4d36991d134b431dc6c (diff) | |
download | busybox-w32-8ad2acf352d790d0bdd792b8e126d58a088451f3.tar.gz busybox-w32-8ad2acf352d790d0bdd792b8e126d58a088451f3.tar.bz2 busybox-w32-8ad2acf352d790d0bdd792b8e126d58a088451f3.zip |
fix "defined but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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) |