Skip to content

Commit 064009e

Browse files
tobluxrafaeljw
authored andcommitted
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 <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250211104532.699124-1-thorsten.blum@linux.dev [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0ad2507 commit 064009e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/acpi/acpi_video.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <linux/acpi.h>
2828
#include <acpi/video.h>
2929
#include <linux/uaccess.h>
30+
#include <linux/string_choices.h>
3031

3132
#define ACPI_VIDEO_BUS_NAME "Video Bus"
3233
#define ACPI_VIDEO_DEVICE_NAME "Video Device"
@@ -2039,9 +2040,9 @@ static int acpi_video_bus_add(struct acpi_device *device)
20392040

20402041
pr_info("%s [%s] (multi-head: %s rom: %s post: %s)\n",
20412042
ACPI_VIDEO_DEVICE_NAME, acpi_device_bid(device),
2042-
video->flags.multihead ? "yes" : "no",
2043-
video->flags.rom ? "yes" : "no",
2044-
video->flags.post ? "yes" : "no");
2043+
str_yes_no(video->flags.multihead),
2044+
str_yes_no(video->flags.rom),
2045+
str_yes_no(video->flags.post));
20452046
mutex_lock(&video_list_lock);
20462047
list_add_tail(&video->entry, &video_bus_head);
20472048
mutex_unlock(&video_list_lock);

0 commit comments

Comments
 (0)