diff options
author | Måns Rullgård <mans@mansr.com> | 2015-12-16 00:15:05 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-12-16 11:42:30 +0100 |
commit | a45af72a609b095820feab26c49286337301377e (patch) | |
tree | c347d0cd0b11d7f4b0872d02aefea64d5786c1bd /samples/hidraw/hid-example.c | |
parent | i2c: xlr: add support for Sigma Designs controller variant (diff) | |
download | linux-a45af72a609b095820feab26c49286337301377e.tar.xz linux-a45af72a609b095820feab26c49286337301377e.zip |
i2c: xlr: fix extra read/write at end of rx transfer
The BYTECNT register holds the transfer size minus one. Setting it to
the correct value removes the need for a dummy read/write at the end of
each transfer. As zero-length transfers are not supported, do not
advertise I2C_FUNC_SMBUS_QUICK.
In other words, this patch makes the driver transfer the number of bytes
requested unless this is zero, which is not supported by the hardware
and is thus refused.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'samples/hidraw/hid-example.c')
0 files changed, 0 insertions, 0 deletions