mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ACPI: WMI: use IS_ENABLED() to simplify built-in or module check
Replace the remaining built-in/module check for CONFIG_ACPI_WMI with IS_ENABLED() macro. Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com> Reviewed-by: Armin Wolf <W_Armin@gmx.de> [ rjw: Subject tweaks ] Link: https://patch.msgid.link/20260921081411.4819-1-lalitshankarch@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
93f51579e7
commit
b9026ef618
|
|
@ -434,7 +434,7 @@ extern acpi_handle ec_get_handle(void);
|
|||
|
||||
extern bool acpi_is_pnp_device(struct acpi_device *);
|
||||
|
||||
#if defined(CONFIG_ACPI_WMI) || defined(CONFIG_ACPI_WMI_MODULE)
|
||||
#if IS_ENABLED(CONFIG_ACPI_WMI)
|
||||
|
||||
typedef void (*wmi_notify_handler) (union acpi_object *data, void *context);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user