Changeset 730 for GPL/branches/uniaud32-next/include/linux/pci.h
- Timestamp:
- Sep 10, 2022, 12:08:43 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/pci.h
r716 r730 672 672 void pci_set_driver_data (struct pci_dev *dev, void *driver_data); 673 673 674 #define pci_get_drvdata(a) pci_get_driver_data(a)675 #define pci_set_drvdata(a,b) pci_set_driver_data(a, b)676 677 674 #define PCI_DEVICE(vend,dev) \ 678 675 .vendor = (vend), .device = (dev), \ … … 739 736 static inline bool pci_dev_run_wake(struct pci_dev *dev) { return 0; } 740 737 738 /* 739 * Similar to the helpers above, these manipulate per-pci_dev 740 * driver-specific data. They are really just a wrapper around 741 * the generic device structure functions of these calls. 742 */ 743 static inline void *pci_get_drvdata(struct pci_dev *pdev) 744 { 745 return dev_get_drvdata(&pdev->dev); 746 } 747 748 static inline void pci_set_drvdata(struct pci_dev *pdev, void *data) 749 { 750 dev_set_drvdata(&pdev->dev, data); 751 } 741 752 /* If you want to know what to call your pci_dev, ask this function. 742 753 * Again, it's a wrapper around the generic device.
Note:
See TracChangeset
for help on using the changeset viewer.