mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
platform/x86: thinkpad_acpi: Convert to use acpi_dev_is_video_device() helper
Replace open coded variant of acpi_dev_is_video_device() helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://patch.msgid.link/20260714185915.865396-7-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
6fc4e1da76
commit
8e3e2870c0
|
|
@ -767,7 +767,7 @@ static acpi_status __init tpacpi_acpi_handle_locate_callback(acpi_handle handle,
|
|||
if (!strcmp(context, "video")) {
|
||||
struct acpi_device *dev = acpi_fetch_acpi_dev(handle);
|
||||
|
||||
if (!dev || strcmp(ACPI_VIDEO_HID, acpi_device_hid(dev)))
|
||||
if (!acpi_dev_is_video_device(dev))
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user