platform/x86: thinkpad_acpi: Use bool for local is_thinkpad variable
Subsystems (3)
PATCH 1/1 platform/x86: thinkpad_acpi: Use bool for local is_thinkpad variable
Use bool for the local is_thinkpad variable because it only stores a boolean value.
--- drivers/platform/x86/lenovo/thinkpad_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/lenovo/thinkpad_acpi.c +1 -1
@@ -11925,7 +11925,7 @@ static int __must_check __init get_thinkpad_model_data(static int __init probe_for_thinkpad (void ) { -int is_thinkpad; +bool is_thinkpad;if (acpi_disabled)return -ENODEV ;
Quoted 18 lines · Thorsten Blum
Use bool for the local
is_thinkpadvariable because it only stores a boolean value.Signed-off-by Thorsten Blum <[email protected]>--- drivers/platform/x86/lenovo/thinkpad_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/lenovo/thinkpad_acpi.c +0
-0@@ -11925,7 +11925,7 @@ static int __must_check __initget_thinkpad_model_data(
static int
__initprobe_for_thinkpad(void)
{
drivers/platform/x86/lenovo/thinkpad_acpi.c static int __must_check __init get_thinkpad_model_data( · line 11931
Quoted 5 lines
drivers/platform/x86/lenovo/thinkpad_acpi.c +1
-1-int is_thinkpad; +bool is_thinkpad;if (acpi_disabled)return -ENODEV ;
Mark
Ilpo Järvinen
maintainerQuoted 2 lines · Thorsten Blum
Use bool for the local
is_thinkpadvariable because it only stores a boolean value.
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also fixes are mostly routed through for-next unless the fix is for a commit introduced in the most recent cycle or is clearly a regression fix.
The list of commits applied:
[1/1] platform/x86: thinkpad_acpi: Use bool for local is_thinkpad variable
commit: acf32e5497af0bfaaa68b30cecab18aaea56a31b
--
i.