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)
commitfde09c6d8f92de0c9f75698a75f0989f2234c517
tree7d01ac3c194e87897185a2bf015f6d3b472e7601
parent14add80b5120966fe0659d61815b9e9b4b68fdc5
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