]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: define PCI resource names in an 'enum'
authorYu Zhao <yu.zhao@intel.com>
Fri, 21 Nov 2008 18:39:32 +0000 (02:39 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:01 +0000 (11:13 -0800)
commit536d0db2d234caafd434c0849f67db5872d9bff2
tree7d01ac3c194e87897185a2bf015f6d3b472e7601
parentab386f30e7ba66efb58c000d47dea74b572be2f5
PCI: define PCI resource names in an 'enum'

This patch moves all definitions of the PCI resource names to an 'enum',
and also replaces some hard-coded resource variables with symbol
names. This change eases introduction of device specific resources.

Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-sysfs.c
drivers/pci/probe.c
drivers/pci/proc.c
include/linux/pci.h