commit | e94bc5d18be03dac8e9d73d30c5523728edeff76 | [log] [tgz] |
---|---|---|
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | Sat Nov 04 21:20:02 2017 +0100 |
committer | Wolfram Sang <wsa@the-dreams.de> | Sun Dec 03 20:47:44 2017 +0100 |
tree | b27ccb2a6eced40136fb73208f3e77cb8809c8e7 | |
parent | 521a72e1f2e8141d78e7699eaacda24e308ed428 [diff] |
i2c: add helpers to ease DMA handling One helper checks if DMA is suitable and optionally creates a bounce buffer, if not. The other function returns the bounce buffer and makes sure the data is properly copied back to the message. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>