diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-07-14 20:53:40 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-07-21 15:37:50 +0200 |
| commit | c75c99aafef5f36520547f9f319f774035cfea9c (patch) | |
| tree | 14ffbaea293de3059eca772f5726cd125d51ede1 /include/linux | |
| parent | c01576a7f5a0f4501cc9db060335b4b5ab281b36 (diff) | |
ACPI: utils: Introduce acpi_dev_is_video_device() helper
There are a couple of users that open code functionality of matching
a given handle against ACPI video device IDs. The current approach
duplicates ID table along with the matching code. Consolidate it
under the acpi_dev_is_video_device() helper's hood.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ rjw: Moved the static var declaration into the function body ]
Link: https://patch.msgid.link/20260714185915.865396-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/acpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 67effb91fa98..c6bd5ee1688d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -448,6 +448,7 @@ extern char *wmi_get_acpi_device_uid(const char *guid); #define ACPI_VIDEO_OUTPUT_SWITCHING_DMI_VIDEO 0x0800 extern char acpi_video_backlight_string[]; +extern bool acpi_dev_is_video_device(struct acpi_device *adev); extern long acpi_is_video_device(acpi_handle handle); extern void acpi_osi_setup(char *str); |
