diff options
author | Zhangfei Gao <zgao6@marvell.com> | 2010-03-02 06:23:49 -0500 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-03-02 06:23:49 -0500 |
commit | 0c43ea544c1086fbbed5a6c99ea58eb64674ea8f (patch) | |
tree | 1d50d78c261cd011667c12134d93f2d6d2caa6e5 /drivers/i2c | |
parent | eec74a257f0a695688ba44c0f6c1e92dc81459be (diff) |
i2c: Document the message size limit
i2c_master_send & i2c_master_recv do not support more than 64 kb
transfer, since msg.len is u16.
Signed-off-by: Zhangfei Gao <zgao6@marvell.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 4131698008b9..3202a86f420e 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -1183,7 +1183,7 @@ EXPORT_SYMBOL(i2c_transfer); | |||
1183 | * i2c_master_send - issue a single I2C message in master transmit mode | 1183 | * i2c_master_send - issue a single I2C message in master transmit mode |
1184 | * @client: Handle to slave device | 1184 | * @client: Handle to slave device |
1185 | * @buf: Data that will be written to the slave | 1185 | * @buf: Data that will be written to the slave |
1186 | * @count: How many bytes to write | 1186 | * @count: How many bytes to write, must be less than 64k since msg.len is u16 |
1187 | * | 1187 | * |
1188 | * Returns negative errno, or else the number of bytes written. | 1188 | * Returns negative errno, or else the number of bytes written. |
1189 | */ | 1189 | */ |
@@ -1210,7 +1210,7 @@ EXPORT_SYMBOL(i2c_master_send); | |||
1210 | * i2c_master_recv - issue a single I2C message in master receive mode | 1210 | * i2c_master_recv - issue a single I2C message in master receive mode |
1211 | * @client: Handle to slave device | 1211 | * @client: Handle to slave device |
1212 | * @buf: Where to store data read from slave | 1212 | * @buf: Where to store data read from slave |
1213 | * @count: How many bytes to read | 1213 | * @count: How many bytes to read, must be less than 64k since msg.len is u16 |
1214 | * | 1214 | * |
1215 | * Returns negative errno, or else the number of bytes read. | 1215 | * Returns negative errno, or else the number of bytes read. |
1216 | */ | 1216 | */ |