diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-10-08 15:52:10 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-10-08 16:06:26 +0200 |
| commit | 2ab6c4a4571d4170b0009a5b14b9789b016814b6 (patch) | |
| tree | 082d60d764ceed201efbb87e7163463ec152c8dc /sys/linux/dev_i2c.txt | |
| parent | ec9371342725651d5d2f461abde83fbe3cf8eee9 (diff) | |
sys/linux: improve i2c descriptions a bit
Diffstat (limited to 'sys/linux/dev_i2c.txt')
| -rw-r--r-- | sys/linux/dev_i2c.txt | 12 |
1 files changed, 6 insertions, 6 deletions
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 <uapi/linux/i2c-dev.h> include <uapi/linux/i2c.h> -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]] |
