summaryrefslogtreecommitdiffstats
path: root/Documentation/misc-devices/mei/mei-client-bus.txt
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2017-11-04 21:20:04 +0100
committerWolfram Sang <wsa@the-dreams.de>2017-12-03 21:22:29 +0100
commit8a91732b3b33454d8034e7be5c8342f028ea772e (patch)
tree326e7f954d0e2200741b0422773af8e8da1c4371 /Documentation/misc-devices/mei/mei-client-bus.txt
parent978336d48d887d6deb7793e0d20a4673f357fb8e (diff)
downloadlinux-stable-8a91732b3b33454d8034e7be5c8342f028ea772e.tar.gz
linux-stable-8a91732b3b33454d8034e7be5c8342f028ea772e.tar.bz2
linux-stable-8a91732b3b33454d8034e7be5c8342f028ea772e.zip
i2c: refactor i2c_master_{send_recv}
Those two functions are very similar, the only differences are that one needs the I2C_M_RD flag for its message while the other one needs the buffer casted to drop the const. Introduce a generic helper which allows to specify the flags (also needed later for DMA safe variants of these calls) and let the casting be done in the inlining functions which are now calling the new helper function. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/misc-devices/mei/mei-client-bus.txt')
0 files changed, 0 insertions, 0 deletions