OSDN Git Service

platform/x86: thinkpad_acpi: use strstarts()
authorBarnabás Pőcze <pobrn@protonmail.com>
Fri, 21 Oct 2022 18:17:28 +0000 (18:17 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 07:48:19 +0000 (08:48 +0100)
commit2621779604c995c4f0e4a08e4c352d524b930fdf
tree925a6b4dbd7656fb4252534b6cce40ad9c2c6a42
parent6e9b8992b122cb12688bd259fc99e67d1be234eb
platform/x86: thinkpad_acpi: use strstarts()

There is a function, `strstarts()`, in linux/string.h
to check if a string is prefix of another. So remove
the custom version from the driver.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20221021180007.55535-1-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c