Re: [PATCH v2 5/6] PCI/VGA: Convert to use acpi_dev_is_video_device() helper
Andy Shevchenko <[email protected]> Mon, 20 Jul 2026 12:51:16 +0300
| Newsgroups | org.kernel.vger.linux-i2c,org.kernel.vger.linux-acpi,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.platform-driver-x86 |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo |
| Message-ID | <[email protected]> |
On Mon, Jul 20, 2026 at 12:04:04PM +0300, Ilpo Järvinen wrote: > On Tue, 14 Jul 2026, Andy Shevchenko wrote: ... > > #if defined(CONFIG_ACPI) > > - struct acpi_device *adev = ACPI_COMPANION(dev); > > - > > - return adev && !strcmp(acpi_device_hid(adev), ACPI_VIDEO_HID); > > + return acpi_dev_is_video_device(ACPI_COMPANION(dev)); > > #else > > return false; > > #endif > > How about adding a stub for acpi_dev_is_video_device() if !CONFIG_ACPI > so this code can do without ifdeffery? So far it's the only the case where it may gain something, but overall it's not required, all other current users already implied that. So, I do not see the value in this churn. When we have more such users, we may reconsider. -- With Best Regards, Andy Shevchenko