~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to miscutils/i2c_tools.c

  • Committer: Denys Vlasenko
  • Date: 2023-07-10 15:27:26 UTC
  • Revision ID: git-v1:69d33db445964727b053068cfaa4d417767f8960
i2ctransfer: fix build warning

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        return (void*)(intptr_t)i;
108
108
}
109
109
 
 
110
#if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT
110
111
static int32_t i2c_smbus_access(int fd, char read_write, uint8_t cmd,
111
112
                                int size, union i2c_smbus_data *data)
112
113
{
120
121
        return ioctl(fd, I2C_SMBUS, &args);
121
122
}
122
123
 
123
 
#if ENABLE_I2CGET || ENABLE_I2CSET || ENABLE_I2CDUMP || ENABLE_I2CDETECT
124
124
static int32_t i2c_smbus_read_byte(int fd)
125
125
{
126
126
        union i2c_smbus_data data;