commit | f0535df039e225983506351c943d11ee954e88c9 | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Mon Jan 11 21:40:38 2021 +0100 |
committer | Wolfram Sang <wsa@kernel.org> | Mon Jan 11 22:35:49 2021 +0100 |
tree | c4576248c6ca4d10653b4225bff0dfaa7dc37dd4 | |
parent | 66b0c2846ba8de569026a067bb5a34ea5768408c [diff] |
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 <dmitry.torokhov@gmail.com> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>