commit | 8e9299e4dde0bb73f2d571dc6e3b522f88d5765d | [log] [tgz] |
---|---|---|
author | Martin Mares <mj@ucw.cz> | Fri Jan 21 21:39:18 2022 +0100 |
committer | Martin Mares <mj@ucw.cz> | Fri Jan 21 21:39:18 2022 +0100 |
tree | 8682c2c608344ed5c5a8f1d521fbab7d85bca4bb | |
parent | cdc56c65abb83b9e03a2de70fafa3e08fbce788e [diff] |
Simplified pci_fill_info() and friends Previously, we kept track of which fields were already filled, which was quite brittle. Now we keep only the set of already known fields in struct pci_dev. We check if the current field is needed against this information. Not only this simplifies the whole thing, but it also enables future back-ends to call pci_fill_info() recursively as needed.