mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks
@ 2026-09-21  8:14 Lalit Shankar Chowdhury
  2026-09-22 16:43 ` Rafael J. Wysocki (Intel)
  0 siblings, 1 reply; 4+ messages in thread
From: Lalit Shankar Chowdhury @ 2026-09-21  8:14 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, open list:ACPI, open list
  Cc: Lalit Shankar Chowdhury

Replace the remaining built-in/module check for CONFIG_ACPI_WMI
with IS_ENABLED() macro.

Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
---
 include/linux/acpi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index ddacac812094..b590f520dc57 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks
  2026-09-21  8:14 [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks Lalit Shankar Chowdhury
@ 2026-09-22 16:43 ` Rafael J. Wysocki (Intel)
  2026-09-22 19:40   ` Armin Wolf
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki (Intel) @ 2026-09-22 16:43 UTC (permalink / raw)
  To: Lalit Shankar Chowdhury; +Cc: open list:ACPI, open list, Armin Wolf

+Armin

On Mon, Sep 21, 2026 at 10:14 AM Lalit Shankar Chowdhury
<lalitshankarch@gmail.com> wrote:
>
> Replace the remaining built-in/module check for CONFIG_ACPI_WMI
> with IS_ENABLED() macro.
>
> Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
> ---
>  include/linux/acpi.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index ddacac812094..b590f520dc57 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -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
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks
  2026-09-22 16:43 ` Rafael J. Wysocki (Intel)
@ 2026-09-22 19:40   ` Armin Wolf
  2026-09-23 14:55     ` Rafael J. Wysocki (Intel)
  0 siblings, 1 reply; 4+ messages in thread
From: Armin Wolf @ 2026-09-22 19:40 UTC (permalink / raw)
  To: Rafael J. Wysocki (Intel), Lalit Shankar Chowdhury
  Cc: open list:ACPI, open list

Am 22.09.26 um 18:43 schrieb Rafael J. Wysocki (Intel):

> +Armin
>
> On Mon, Sep 21, 2026 at 10:14 AM Lalit Shankar Chowdhury
> <lalitshankarch@gmail.com> wrote:
>> Replace the remaining built-in/module check for CONFIG_ACPI_WMI
>> with IS_ENABLED() macro.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>

>> Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
>> ---
>>   include/linux/acpi.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
>> index ddacac812094..b590f520dc57 100644
>> --- a/include/linux/acpi.h
>> +++ b/include/linux/acpi.h
>> @@ -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
>>
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks
  2026-09-22 19:40   ` Armin Wolf
@ 2026-09-23 14:55     ` Rafael J. Wysocki (Intel)
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki (Intel) @ 2026-09-23 14:55 UTC (permalink / raw)
  To: Armin Wolf, Lalit Shankar Chowdhury; +Cc: open list:ACPI, open list

On Tue, Sep 22, 2026 at 9:40 PM Armin Wolf <W_Armin@gmx.de> wrote:
>
> Am 22.09.26 um 18:43 schrieb Rafael J. Wysocki (Intel):
>
> > +Armin
> >
> > On Mon, Sep 21, 2026 at 10:14 AM Lalit Shankar Chowdhury
> > <lalitshankarch@gmail.com> wrote:
> >> Replace the remaining built-in/module check for CONFIG_ACPI_WMI
> >> with IS_ENABLED() macro.
>
> Reviewed-by: Armin Wolf <W_Armin@gmx.de>

Applied as 7.4 material, thanks!

> >> Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
> >> ---
> >>   include/linux/acpi.h | 2 +-
> >>   1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> >> index ddacac812094..b590f520dc57 100644
> >> --- a/include/linux/acpi.h
> >> +++ b/include/linux/acpi.h
> >> @@ -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
> >>
> >>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-23 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21  8:14 [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks Lalit Shankar Chowdhury
2026-09-22 16:43 ` Rafael J. Wysocki (Intel)
2026-09-22 19:40   ` Armin Wolf
2026-09-23 14:55     ` Rafael J. Wysocki (Intel)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®