[ibm-acpi-devel] [PATCH v1 1/7] platform/x86: asus-tf103c-dock: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/asus-tf103c-dock.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/platfor

[ibm-acpi-devel] [PATCH v1 6/7] platform/x86: thinkpad_acpi: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/thinkpad_acpi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/th

[ibm-acpi-devel] [PATCH v1 7/7] platform/x86: touchscreen_dmi: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/touchscreen_dmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/touchs

[ibm-acpi-devel] [PATCH v1 4/7] platform/x86: serial-multi-instantiate: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/serial-multi-instantiate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platfo

[ibm-acpi-devel] [PATCH v1 0/7] platform/x86: Move to 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Move to 2-argument strscpy() to make code shorter and have an additional check. No functional change intended. Some cases are let untouched where it looks better with the 3rd argument. Andy Shevchenko (7): platform/x86: asus-tf103c-dock: Use 2-argument strscpy() platform/x86: hp: hp-bioscfg:

[ibm-acpi-devel] [PATCH v1 2/7] platform/x86: hp: hp-bioscfg: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- .../x86/hp/hp-bioscfg/enum-attributes.c | 18 +- .../x86/hp/hp-bioscfg/int-attributes.c| 7 ++- ...

[ibm-acpi-devel] [PATCH v1 3/7] platform/x86: intel: chtwc_int33fe: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel/chtwc_int33fe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/

[ibm-acpi-devel] [PATCH v1 5/7] platform/x86: think-lmi: Use 2-argument strscpy()

2024-06-02 Thread Andy Shevchenko
Use 2-argument strscpy(), which is not only shorter but also provides an additional check that destination buffer is an array. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/think-lmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/think-lm

Re: [ibm-acpi-devel] [PATCH v1 1/7] platform/x86: asus-tf103c-dock: Use 2-argument strscpy()

2024-06-02 Thread Hans de Goede
Hi, On 6/2/24 10:57 AM, Andy Shevchenko wrote: > Use 2-argument strscpy(), which is not only shorter but also provides > an additional check that destination buffer is an array. > > Signed-off-by: Andy Shevchenko Thanks, the entire series looks good to me: Reviewed-by: Hans de Goede for the