diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2017-11-04 16:20:02 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-12-03 14:47:44 -0500 |
commit | e94bc5d18be03dac8e9d73d30c5523728edeff76 (patch) | |
tree | b27ccb2a6eced40136fb73208f3e77cb8809c8e7 /drivers/i2c/i2c-dev.c | |
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>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
0 files changed, 0 insertions, 0 deletions