diff mbox

PCI: Assign values to 'pci_obff_signal_type' enumeration constants

Message ID 20110707210036.696.13836.stgit@amt.stowe (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Myron Stowe July 7, 2011, 9 p.m. UTC
From: Myron Stowe <mstowe@redhat.com>

'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>
---

 include/linux/pci.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Jesse Barnes July 22, 2011, 3:23 p.m. UTC | #1
On Thu, 07 Jul 2011 15:00:36 -0600
Myron Stowe <myron.stowe@redhat.com> wrote:

> From: Myron Stowe <mstowe@redhat.com>
> 
> '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>
> ---

Applied, thanks.
diff mbox

Patch

diff --git a/include/linux/pci.h b/include/linux/pci.h
index c446b5c..6e96015 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -843,8 +843,8 @@  void pci_enable_ido(struct pci_dev *dev, unsigned long type);
 void pci_disable_ido(struct pci_dev *dev, unsigned long type);
 
 enum pci_obff_signal_type {
-	PCI_EXP_OBFF_SIGNAL_L0,
-	PCI_EXP_OBFF_SIGNAL_ALWAYS,
+	PCI_EXP_OBFF_SIGNAL_L0 = 0,
+	PCI_EXP_OBFF_SIGNAL_ALWAYS = 1,
 };
 int pci_enable_obff(struct pci_dev *dev, enum pci_obff_signal_type);
 void pci_disable_obff(struct pci_dev *dev);