diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2015-07-02 00:01:03 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-08-10 21:24:09 +0200 |
commit | 58fa2405bd44805cb6166603100b0183ce26a0c8 (patch) | |
tree | 60e2760d624577ff6effecddde3a3747594faf69 /drivers/pci | |
parent | PCI: pciehp: Handle invalid data when reading from non-existent devices (diff) | |
download | linux-58fa2405bd44805cb6166603100b0183ce26a0c8.tar.xz linux-58fa2405bd44805cb6166603100b0183ce26a0c8.zip |
PCI: pciehp: Remove unused interrupt events
The list of interrupt events (INT_BUTTON_IGNORE, INT_PRESENCE_ON, etc.) was
copied from other hotplug drivers, but pciehp doesn't use them all.
Remove the interrupt events that aren't used by pciehp.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/pciehp.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index 57cd1327346f..aca84e1b81be 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h @@ -101,18 +101,14 @@ struct controller { unsigned int power_fault_detected; }; -#define INT_BUTTON_IGNORE 0 #define INT_PRESENCE_ON 1 #define INT_PRESENCE_OFF 2 #define INT_SWITCH_CLOSE 3 #define INT_SWITCH_OPEN 4 #define INT_POWER_FAULT 5 -#define INT_POWER_FAULT_CLEAR 6 -#define INT_BUTTON_PRESS 7 -#define INT_BUTTON_RELEASE 8 -#define INT_BUTTON_CANCEL 9 -#define INT_LINK_UP 10 -#define INT_LINK_DOWN 11 +#define INT_BUTTON_PRESS 6 +#define INT_LINK_UP 7 +#define INT_LINK_DOWN 8 #define STATIC_STATE 0 #define BLINKINGON_STATE 1 |