diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2017-05-28 09:52:17 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-06-15 15:51:44 +0200 |
commit | 916335036d4fe33f9806240cb0d1900f4975b959 (patch) | |
tree | e8908263e64d2fe4564b5293711745f9f04a31db /drivers/iio/common | |
parent | Linux 4.12-rc5 (diff) | |
download | linux-916335036d4fe33f9806240cb0d1900f4975b959.tar.xz linux-916335036d4fe33f9806240cb0d1900f4975b959.zip |
i2c: rcar: use correct length when unmapping DMA
Because we need to transfer some bytes with PIO, the msg length is not
the length of the DMA buffer. Use the correct value which we used when
doing the mapping.
Fixes: 73e8b0528346e8 ("i2c: rcar: add DMA support")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/iio/common')
0 files changed, 0 insertions, 0 deletions