aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2021-01-11 20:40:38 +0000
committerWolfram Sang <[email protected]>2021-01-11 21:35:49 +0000
commitf0535df039e225983506351c943d11ee954e88c9 (patch)
treec4576248c6ca4d10653b4225bff0dfaa7dc37dd4 /drivers/i2c/algos/i2c-algo-bit.c
parenti2c: mlxcpld: Add support for I2C bus frequency setting (diff)
downloadkernel-f0535df039e225983506351c943d11ee954e88c9.tar.gz
kernel-f0535df039e225983506351c943d11ee954e88c9.zip
i2c: smbus: switch from loops to memcpy
When copying memory from one buffer to another, instead of open-coding loops with byte-by-byte copies let's use memcpy() which might be a bit faster and makes intent more clear. Signed-off-by: Dmitry Torokhov <[email protected]> Reviewed-by: Luca Ceresoli <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions