[PATCH v2 0/2] Add and use supported/unsupported string helper
From: Thorsten Blum
Date: Mon Sep 07 2026 - 04:52:30 EST
Add a shared str_supported_unsupported() helper and use it to replace
thinkpad_acpi's custom implementation.
Changes in v2:
- Add and use str_supported_unsupported() as suggested by Ilpo
- v1: https://lore.kernel.org/r/20260806131549.235170-2-thorsten.blum@xxxxxxxxx/
Thorsten Blum (2):
lib/string_choices: Add str_supported_unsupported() helper
platform/x86: thinkpad_acpi: Use str_supported_unsupported() helper
drivers/platform/x86/lenovo/thinkpad_acpi.c | 42 ++++++++-------------
include/linux/string_choices.h | 6 +++
2 files changed, 22 insertions(+), 26 deletions(-)