diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-07-10 17:27:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-07-10 17:27:26 +0200 |
commit | 69d33db445964727b053068cfaa4d417767f8960 (patch) | |
tree | 07d047439323d389b65214943366e5de956bcee8 /miscutils/i2c_tools.c | |
parent | 5353df91cba7b397b9407701681708d0a1518df6 (diff) | |
download | busybox-w32-69d33db445964727b053068cfaa4d417767f8960.tar.gz busybox-w32-69d33db445964727b053068cfaa4d417767f8960.tar.bz2 busybox-w32-69d33db445964727b053068cfaa4d417767f8960.zip |
i2ctransfer: fix build warning
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, 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; |