]> mj.ucw.cz Git - pciutils.git/commit
libpci: hwdb: Remove ID_SUBSYSTEM and ID_GEN_SUBSYSTEM usage from pci_id_hwdb_lookup()
authorPali Rohár <pali@kernel.org>
Sat, 30 Mar 2024 10:06:25 +0000 (11:06 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 5 Apr 2024 11:14:07 +0000 (13:14 +0200)
commit9f3d614e4578bdec2b60d97caec400b28d4af9d3
treeee3e1048fa3595fc6af032d4417f51f2b49b0830
parent4b4ea003ef812f098d6ad7052792261248959a1c
libpci: hwdb: Remove ID_SUBSYSTEM and ID_GEN_SUBSYSTEM usage from pci_id_hwdb_lookup()

Currently used udev hwdb key "ID_MODEL_FROM_DATABASE" does not return
subsystem, but returns device name.

There is no udev hwdb key which returns subsystem or generic subsystem.
So remove ID_SUBSYSTEM and ID_GEN_SUBSYSTEM from pci_id_hwdb_lookup().

This change fixes issue that pci_id_hwdb_lookup() as subsystem name always
returned device name.
lib/names-hwdb.c