Ignore:
Timestamp:
Sep 10, 2022, 12:08:43 AM (3 years ago)
Author:
Paul Smedley
Message:

Cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/pci.h

    r716 r730  
    672672void pci_set_driver_data (struct pci_dev *dev, void *driver_data);
    673673
    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 
    677674#define PCI_DEVICE(vend,dev) \
    678675        .vendor = (vend), .device = (dev), \
     
    739736static inline bool pci_dev_run_wake(struct pci_dev *dev) { return 0; }
    740737
     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 */
     743static inline void *pci_get_drvdata(struct pci_dev *pdev)
     744{
     745        return dev_get_drvdata(&pdev->dev);
     746}
     747
     748static inline void pci_set_drvdata(struct pci_dev *pdev, void *data)
     749{
     750        dev_set_drvdata(&pdev->dev, data);
     751}
    741752/* If you want to know what to call your pci_dev, ask this function.
    742753 * Again, it's a wrapper around the generic device.
Note: See TracChangeset for help on using the changeset viewer.