Skip to content

Commit 688398b

Browse files
Myron Stowejbarnes993
authored andcommitted
PCI: Assign values to 'pci_obff_signal_type' enumeration constants
'pci_obff_signal_type' is passed between drivers and the kernel API. This patch explicitly assigns values to the enumeration type's constants which aids in detecting any future changes or additions that would break the kernel's ABI. No functional change. Signed-off-by: Myron Stowe <myron.stowe@redhat.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent 43d786e commit 688398b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/pci.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ void pci_enable_ido(struct pci_dev *dev, unsigned long type);
843843
void pci_disable_ido(struct pci_dev *dev, unsigned long type);
844844

845845
enum pci_obff_signal_type {
846-
PCI_EXP_OBFF_SIGNAL_L0,
847-
PCI_EXP_OBFF_SIGNAL_ALWAYS,
846+
PCI_EXP_OBFF_SIGNAL_L0 = 0,
847+
PCI_EXP_OBFF_SIGNAL_ALWAYS = 1,
848848
};
849849
int pci_enable_obff(struct pci_dev *dev, enum pci_obff_signal_type);
850850
void pci_disable_obff(struct pci_dev *dev);

0 commit comments

Comments
 (0)