mirror of https://github.com/mirror/busybox.git
i2ctransfer: fix build warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>master
parent
5353df91cb
commit
69d33db445
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue