From 2ab6c4a4571d4170b0009a5b14b9789b016814b6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 8 Oct 2019 15:52:10 +0200 Subject: sys/linux: improve i2c descriptions a bit --- sys/linux/dev_i2c.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/linux/dev_i2c.txt') diff --git a/sys/linux/dev_i2c.txt b/sys/linux/dev_i2c.txt index cf7d657f5..e2e537191 100644 --- a/sys/linux/dev_i2c.txt +++ b/sys/linux/dev_i2c.txt @@ -4,7 +4,8 @@ include include -define I2C_MAX_BLOCK (I2C_SMBUS_BLOCK_MAX + 2) +define I2C_MAX_BLOCK_1 (I2C_SMBUS_BLOCK_MAX + 1) +define I2C_MAX_BLOCK_2 (I2C_SMBUS_BLOCK_MAX + 2) resource fd_i2c[fd] @@ -28,11 +29,10 @@ i2c_smbus_ioctl_data { data ptr[in, i2c_smbus_data] } -i2c_smbus_data [ - byte int8 - word int16 - block array[int8, I2C_MAX_BLOCK] -] +i2c_smbus_data { + size int8[0:I2C_MAX_BLOCK_2] + block array[int8, I2C_MAX_BLOCK_1] +} i2c_rdwr_ioctl_data { msgs ptr[in, array[i2c_msg]] -- cgit mrf-deployment