platform/x86: toshiba_acpi: change turn_on_panel_on_resume to static
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 20 Sep 2022 08:44:34 +0000 (16:44 +0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 22 Sep 2022 13:54:23 +0000 (15:54 +0200)
turn_on_panel_on_resume is only used in toshiba_acpi.c now, change it
to static.

Fixes: 3cb1f40dfdc3 ("drivers/platform: toshiba_acpi: Call HCI_PANEL_POWER_ON on resume on some models")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220920084434.3739493-1-yangyingliang@huawei.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/toshiba_acpi.c

index 4ab0bd34d3972efbe46110eadce6abd42eb74d2d..160abd3b3af8be37b2abf7018e53d552e20c7591 100644 (file)
@@ -52,7 +52,7 @@ MODULE_AUTHOR("John Belmonte");
 MODULE_DESCRIPTION("Toshiba Laptop ACPI Extras Driver");
 MODULE_LICENSE("GPL");
 
-int turn_on_panel_on_resume = -1;
+static int turn_on_panel_on_resume = -1;
 module_param(turn_on_panel_on_resume, int, 0644);
 MODULE_PARM_DESC(turn_on_panel_on_resume,
        "Call HCI_PANEL_POWER_ON on resume (-1 = auto, 0 = no, 1 = yes");