From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>,
Mark Gross <mgross@linux.intel.com>,
platform-driver-x86@vger.kernel.org
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: [PATCH v1] platform/x86: Kconfig: Surround WMI drivers by 'if ACPI_WMI'
Date: Tue, 26 Jan 2021 16:00:52 +0200 [thread overview]
Message-ID: <20210126140052.3451769-1-andriy.shevchenko@linux.intel.com> (raw)
Surround WMI drivers by 'if ACPI_WMI' instead of depending
each of them separately.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/platform/x86/Kconfig | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 4a5798a0ce0c..288f8f82d796 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -37,9 +37,10 @@ config ACPI_WMI
It is safe to enable this driver even if your DSDT doesn't define
any ACPI-WMI devices.
+if ACPI_WMI
+
config WMI_BMOF
tristate "WMI embedded Binary MOF driver"
- depends on ACPI_WMI
default ACPI_WMI
help
Say Y here if you want to be able to read a firmware-embedded
@@ -54,7 +55,6 @@ config ALIENWARE_WMI
depends on ACPI
depends on LEDS_CLASS
depends on NEW_LEDS
- depends on ACPI_WMI
help
This is a driver for controlling Alienware BIOS driven
features. It exposes an interface for controlling the AlienFX
@@ -64,7 +64,6 @@ config ALIENWARE_WMI
config HUAWEI_WMI
tristate "Huawei WMI laptop extras driver"
depends on ACPI_BATTERY
- depends on ACPI_WMI
depends on INPUT
select INPUT_SPARSEKMAP
select LEDS_CLASS
@@ -91,7 +90,6 @@ config UV_SYSFS
config INTEL_WMI_SBL_FW_UPDATE
tristate "Intel WMI Slim Bootloader firmware update signaling driver"
- depends on ACPI_WMI
help
Say Y here if you want to be able to use the WMI interface to signal
Slim Bootloader to trigger update on next reboot.
@@ -101,7 +99,6 @@ config INTEL_WMI_SBL_FW_UPDATE
config INTEL_WMI_THUNDERBOLT
tristate "Intel WMI thunderbolt force power driver"
- depends on ACPI_WMI
help
Say Y here if you want to be able to use the WMI interface on select
systems to force the power control of Intel Thunderbolt controllers.
@@ -112,22 +109,19 @@ config INTEL_WMI_THUNDERBOLT
be called intel-wmi-thunderbolt.
config MXM_WMI
- tristate "WMI support for MXM Laptop Graphics"
- depends on ACPI_WMI
+ tristate "WMI support for MXM Laptop Graphics"
help
MXM is a standard for laptop graphics cards, the WMI interface
is required for switchable nvidia graphics machines
config PEAQ_WMI
tristate "PEAQ 2-in-1 WMI hotkey driver"
- depends on ACPI_WMI
depends on INPUT
help
Say Y here if you want to support WMI-based hotkeys on PEAQ 2-in-1s.
config XIAOMI_WMI
tristate "Xiaomi WMI key driver"
- depends on ACPI_WMI
depends on INPUT
help
Say Y here if you want to support WMI-based keys on Xiaomi notebooks.
@@ -135,6 +129,8 @@ config XIAOMI_WMI
To compile this driver as a module, choose M here: the module will
be called xiaomi-wmi.
+endif # ACPI_WMI
+
config ACERHDF
tristate "Acer Aspire One temperature and fan driver"
depends on ACPI && THERMAL
--
2.30.0
next reply other threads:[~2021-01-26 14:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 14:00 Andy Shevchenko [this message]
2021-02-03 10:48 ` [PATCH v1] platform/x86: Kconfig: Surround WMI drivers by 'if ACPI_WMI' Hans de Goede
2021-02-03 10:55 ` Hans de Goede
2021-02-03 11:33 ` Andy Shevchenko
2021-02-03 12:11 ` Hans de Goede
2021-02-03 12:16 ` Andy Shevchenko
2021-02-03 12:57 ` Hans de Goede
2021-02-03 13:45 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210126140052.3451769-1-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=mgross@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox