aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/i2c_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index 094bf9e38..6d221e9fc 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -723,7 +723,7 @@ static int read_block_data(int buf_fd, int mode, int *block)
723 uint8_t cblock[I2C_SMBUS_BLOCK_MAX + I2CDUMP_NUM_REGS]; 723 uint8_t cblock[I2C_SMBUS_BLOCK_MAX + I2CDUMP_NUM_REGS];
724 int res, blen = 0, tmp, i; 724 int res, blen = 0, tmp, i;
725 725
726 if (mode == I2C_SMBUS_BLOCK_DATA || mode == I2C_SMBUS_I2C_BLOCK_DATA) { 726 if (mode == I2C_SMBUS_BLOCK_DATA) {
727 res = i2c_smbus_read_block_data(buf_fd, 0, cblock); 727 res = i2c_smbus_read_block_data(buf_fd, 0, cblock);
728 blen = res; 728 blen = res;
729 } else { 729 } else {