Re: [PATCH v2 5/7] pci: make pci_match_one_device match on ID instead of device

From: Danilo Krummrich

Date: Tue Jun 30 2026 - 16:04:39 EST


On Tue Jun 30, 2026 at 1:09 PM CEST, Gary Guo wrote:
> There is a need to match just IDs instead of against devices. Thus rename
> this function to pci_match_one_id, and add a pci_id_from_device helper to
> make it easy to convert users.
>
> Similar convert pci_match_id to do_pci_match_id, however the existing API
> is kept due to quite a few users.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>

Reviewed-by: Danilo Krummrich <dakr@xxxxxxxxxx>