i2c: move core from strlcpy to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 11 Aug 2022 12:08:08 +0000 (14:08 +0200)
committerWolfram Sang <wsa@kernel.org>
Thu, 11 Aug 2022 21:02:52 +0000 (23:02 +0200)
commit0b0221d9cd330e3d9c4cb0a257b92af2a6ca2ed0
tree459b92d48e07ee89d0754a2f39562aad926f9994
parentea1558ce149d286eaf2c0800a93b7efa2adda094
i2c: move core from strlcpy to strscpy

Follow the advice of the below link and prefer 'strscpy'. Conversion is
easy because no code used the return value. It has been done with a
simple sed invocation.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-base.c
drivers/i2c/i2c-smbus.c