diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-04-27 13:33:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-15 21:44:44 -0700 |
commit | 00240c3839d843ccf07abd52806f421f7b87bbdc (patch) | |
tree | 4ad3a8c543a7a3de0893b1289086e62fffb98bc6 /drivers/pci/pci.c | |
parent | 604eb89ffed9fba268582dc44d5b462ea94cc0ca (diff) | |
download | kernel_samsung_smdk4412-00240c3839d843ccf07abd52806f421f7b87bbdc.tar.gz kernel_samsung_smdk4412-00240c3839d843ccf07abd52806f421f7b87bbdc.tar.bz2 kernel_samsung_smdk4412-00240c3839d843ccf07abd52806f421f7b87bbdc.zip |
PCI: add power-state name strings
This patch (as1235) adds an array of PCI power-state names, together
with a simple inline accessor routine.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 1a91bf9687a..07bbb9b3b93 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -24,6 +24,11 @@ #include <asm/setup.h> #include "pci.h" +const char *pci_power_names[] = { + "error", "D0", "D1", "D2", "D3hot", "D3cold", "unknown", +}; +EXPORT_SYMBOL_GPL(pci_power_names); + unsigned int pci_pm_d3_delay = PCI_PM_D3_WAIT; #ifdef CONFIG_PCI_DOMAINS |