Skip to content

Commit 3fc11da

Browse files
Alexander Antonovrdementi
authored andcommitted
Add function to struct pci to check whether it's Intel device
1 parent 41f20f5 commit 3fc11da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lspci.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ struct pci {
282282
{}
283283

284284
bool hasChildDevices() const { return (child_pci_devs.size() != 0); }
285+
286+
bool isIntelDevice() const { return (vendor_id == PCM_INTEL_PCI_VENDOR_ID); }
285287
};
286288
struct iio_skx {
287289
struct {

0 commit comments

Comments
 (0)