From: Thorsten Blum Date: Tue, 11 Feb 2025 10:45:32 +0000 (+0100) Subject: ACPI: video: Use str_yes_no() helper in acpi_video_bus_add() X-Git-Tag: v6.15-rc1~192^2~1^6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=064009ebc171dc11aaa86c0bdce939640e1d033d;p=thirdparty%2Fkernel%2Flinux.git ACPI: video: Use str_yes_no() helper in acpi_video_bus_add() Use the str_yes_no() helper function instead of hard-coded strings. Signed-off-by: Thorsten Blum Link: https://patch.msgid.link/20250211104532.699124-1-thorsten.blum@linux.dev [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index a972831dbd667..efdadc74e3f41 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -27,6 +27,7 @@ #include #include #include +#include #define ACPI_VIDEO_BUS_NAME "Video Bus" #define ACPI_VIDEO_DEVICE_NAME "Video Device" @@ -2039,9 +2040,9 @@ static int acpi_video_bus_add(struct acpi_device *device) pr_info("%s [%s] (multi-head: %s rom: %s post: %s)\n", ACPI_VIDEO_DEVICE_NAME, acpi_device_bid(device), - video->flags.multihead ? "yes" : "no", - video->flags.rom ? "yes" : "no", - video->flags.post ? "yes" : "no"); + str_yes_no(video->flags.multihead), + str_yes_no(video->flags.rom), + str_yes_no(video->flags.post)); mutex_lock(&video_list_lock); list_add_tail(&video->entry, &video_bus_head); mutex_unlock(&video_list_lock);