diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2022-08-11 09:10:30 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-08-11 23:02:51 +0200 |
commit | ea1558ce149d286eaf2c0800a93b7efa2adda094 (patch) | |
tree | 6e20a55c06eae3c1f7343b2257f8339f341bd0d4 /drivers/i2c/busses/i2c-cbus-gpio.c | |
parent | i2c: kempld: Support ACPI I2C device declaration (diff) | |
download | linux-ea1558ce149d286eaf2c0800a93b7efa2adda094.tar.xz linux-ea1558ce149d286eaf2c0800a93b7efa2adda094.zip |
i2c: move drivers from strlcpy to strscpy
Follow the advice of the below link and prefer 'strscpy'. Conversion is
easy because no driver used the return value and 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>
Diffstat (limited to 'drivers/i2c/busses/i2c-cbus-gpio.c')
-rw-r--r-- | drivers/i2c/busses/i2c-cbus-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-cbus-gpio.c b/drivers/i2c/busses/i2c-cbus-gpio.c index f8639a4457d2..d97c61eec95c 100644 --- a/drivers/i2c/busses/i2c-cbus-gpio.c +++ b/drivers/i2c/busses/i2c-cbus-gpio.c @@ -245,7 +245,7 @@ static int cbus_i2c_probe(struct platform_device *pdev) adapter->nr = pdev->id; adapter->timeout = HZ; adapter->algo = &cbus_i2c_algo; - strlcpy(adapter->name, "CBUS I2C adapter", sizeof(adapter->name)); + strscpy(adapter->name, "CBUS I2C adapter", sizeof(adapter->name)); spin_lock_init(&chost->lock); chost->dev = &pdev->dev; |