From: Armin Wolf <W_Armin@gmx.de>
To: "Rafael J. Wysocki (Intel)" <rafael@kernel.org>,
Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
Cc: "open list:ACPI" <linux-acpi@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ACPI: use IS_ENABLED() to simplify built-in or module checks
Date: Tue, 22 Sep 2026 21:40:00 +0200 [thread overview]
Message-ID: <50986455-fb18-4c92-9c3b-74d625f3f6fa@gmx.de> (raw)
In-Reply-To: <CAJZ5v0gvYn3ga6vL3BYt+5GFRheg_sjF8AX_HBXfHaLv+tPGKA@mail.gmail.com>
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
>>
>>
next prev parent reply other threads:[~2026-09-22 19:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 8:14 Lalit Shankar Chowdhury
2026-09-22 16:43 ` Rafael J. Wysocki (Intel)
2026-09-22 19:40 ` Armin Wolf [this message]
2026-09-23 14:55 ` Rafael J. Wysocki (Intel)
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=50986455-fb18-4c92-9c3b-74d625f3f6fa@gmx.de \
--to=w_armin@gmx.de \
--cc=lalitshankarch@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@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
all inboxes | Powered by JetHome®