platform/x86: acer_wmi: Cleanup Kconfig selects
authorHans de Goede <hdegoede@redhat.com>
Mon, 20 Jun 2022 14:56:26 +0000 (16:56 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 27 Jun 2022 07:37:49 +0000 (09:37 +0200)
ACER_WMI already depends on ACPI_WMI which depends on ACPI
so the "depends on ACPI" is unnecessary.

And since ACER_WMI already depends on ACPI adding an "if ACPI"
to the ACPI_VIDEO select is nonsense.

While at it also group all the selects together.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220620145628.5882-1-hdegoede@redhat.com
drivers/platform/x86/Kconfig

index e7f1028..f01f755 100644 (file)
@@ -177,17 +177,15 @@ config ACER_WIRELESS
 
 config ACER_WMI
        tristate "Acer WMI Laptop Extras"
-       depends on ACPI
-       select LEDS_CLASS
-       select NEW_LEDS
        depends on BACKLIGHT_CLASS_DEVICE
        depends on SERIO_I8042
        depends on INPUT
        depends on RFKILL || RFKILL = n
        depends on ACPI_WMI
+       select ACPI_VIDEO
        select INPUT_SPARSEKMAP
-       # Acer WMI depends on ACPI_VIDEO when ACPI is enabled
-        select ACPI_VIDEO if ACPI
+       select LEDS_CLASS
+       select NEW_LEDS
        help
          This is a driver for newer Acer (and Wistron) laptops. It adds
          wireless radio and bluetooth control, and on some laptops,