[PATCH v2 0/6] ACPI: Introduce and use acpi_dev_is_video_device() helper

Andy Shevchenko posted 6 patches 1 week, 3 days ago
drivers/acpi/scan.c                         |  4 +++-
drivers/acpi/utils.c                        | 17 +++++++++++++++++
drivers/acpi/video_detect.c                 |  7 +------
drivers/i2c/i2c-core-acpi.c                 | 15 +++++----------
drivers/pci/vgaarb.c                        |  4 +---
drivers/platform/x86/lenovo/thinkpad_acpi.c |  2 +-
include/linux/acpi.h                        |  1 +
7 files changed, 29 insertions(+), 21 deletions(-)
[PATCH v2 0/6] ACPI: Introduce and use acpi_dev_is_video_device() helper
Posted by Andy Shevchenko 1 week, 3 days ago
There are a few users that open code functionality of matching
a given device 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.

Supposed to go via ACPI tree, please ack.

Changelog v2:
- rebased on top of the latest code base
- renamed helper and changed its prototype (Rafael, Mika)
- added tag (Wolfram)
- added patch to change scan.c as well

v1: 20220630212819.42958-1-andriy.shevchenko@linux.intel.com

Andy Shevchenko (6):
  ACPI: utils: Introduce acpi_dev_is_video_device() helper
  ACPI: scan: Convert to use acpi_dev_is_video_device() helper
  ACPI: video: Convert to use acpi_dev_is_video_device() helper
  i2c: acpi: Convert to use acpi_dev_is_video_device() helper
  PCI/VGA: Convert to use acpi_dev_is_video_device() helper
  platform/x86: thinkpad_acpi: Convert to use acpi_dev_is_video_device()
    helper

 drivers/acpi/scan.c                         |  4 +++-
 drivers/acpi/utils.c                        | 17 +++++++++++++++++
 drivers/acpi/video_detect.c                 |  7 +------
 drivers/i2c/i2c-core-acpi.c                 | 15 +++++----------
 drivers/pci/vgaarb.c                        |  4 +---
 drivers/platform/x86/lenovo/thinkpad_acpi.c |  2 +-
 include/linux/acpi.h                        |  1 +
 7 files changed, 29 insertions(+), 21 deletions(-)

-- 
2.50.1
Re: [PATCH v2 0/6] ACPI: Introduce and use acpi_dev_is_video_device() helper
Posted by Rafael J. Wysocki (Intel) 4 days, 4 hours ago
On Tue, Jul 14, 2026 at 8:59 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> There are a few users that open code functionality of matching
> a given device 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.
>
> Supposed to go via ACPI tree, please ack.
>
> Changelog v2:
> - rebased on top of the latest code base
> - renamed helper and changed its prototype (Rafael, Mika)
> - added tag (Wolfram)
> - added patch to change scan.c as well
>
> v1: 20220630212819.42958-1-andriy.shevchenko@linux.intel.com
>
> Andy Shevchenko (6):
>   ACPI: utils: Introduce acpi_dev_is_video_device() helper
>   ACPI: scan: Convert to use acpi_dev_is_video_device() helper
>   ACPI: video: Convert to use acpi_dev_is_video_device() helper
>   i2c: acpi: Convert to use acpi_dev_is_video_device() helper
>   PCI/VGA: Convert to use acpi_dev_is_video_device() helper
>   platform/x86: thinkpad_acpi: Convert to use acpi_dev_is_video_device()
>     helper
>
>  drivers/acpi/scan.c                         |  4 +++-
>  drivers/acpi/utils.c                        | 17 +++++++++++++++++
>  drivers/acpi/video_detect.c                 |  7 +------
>  drivers/i2c/i2c-core-acpi.c                 | 15 +++++----------
>  drivers/pci/vgaarb.c                        |  4 +---
>  drivers/platform/x86/lenovo/thinkpad_acpi.c |  2 +-
>  include/linux/acpi.h                        |  1 +
>  7 files changed, 29 insertions(+), 21 deletions(-)
>
> --

Applied as 7.3 material with an adjustment in the first patch, thanks!