ACPI: use IS_ENABLED() to simplify built-in or module checks
PATCH 1/1 ACPI: use IS_ENABLED() to simplify built-in or module checks
Replace the remaining built-in/module check for CONFIG_ACPI_WMI with IS_ENABLED() macro.
Signed-off-by Lalit Shankar Chowdhury <[email protected]>
--- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/acpi.h +1 -1
@@ -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);
Signature · 1 line
2.53.0
Rafael J. Wysocki (Intel)
maintainer+Armin
Quoted 26 lines · Lalit Shankar Chowdhury
Replace the remaining built-in/module check for
CONFIG_ACPI_WMIwithIS_ENABLED()macro.Signed-off-by Lalit Shankar Chowdhury <[email protected]>--- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/acpi.h +1
-2@@ -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); --2.53.0
Armin Wolf
Reviewed-byAm 22.09.26 um 18:43 schrieb Rafael J. Wysocki (Intel):
Quoted 6 lines
+Armin
Quoted 2 lines · Lalit Shankar Chowdhury
Replace the remaining built-in/module check for
CONFIG_ACPI_WMIwithIS_ENABLED()macro.
Reviewed-by Armin Wolf <[email protected]>
Quoted 22 lines
Quoted 22 lines
Signed-off-by Lalit Shankar Chowdhury <[email protected]>--- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/acpi.h +1
-2@@ -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); --2.53.0
Quoted 11 lines · Armin Wolf
Am 22.09.26 um 18:43 schrieb Rafael J. Wysocki (Intel):
Quoted 6 lines
+Armin
Quoted 2 lines · Lalit Shankar Chowdhury
Replace the remaining built-in/module check for
CONFIG_ACPI_WMIwithIS_ENABLED()macro.Reviewed-by Armin Wolf <[email protected]>
Applied as 7.4 material, thanks!
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Signed-off-by Lalit Shankar Chowdhury <[email protected]>--- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/acpi.h +1
-2@@ -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); --2.53.0