[RFC Patch v1 04/13] ACPI, PCI: replace open-coded _DSM specific code with helper functions

2013-12-17 Thread Jiang Liu
Use helper functions to simplify _DSM related code in pci-label driver. Also enforce more strict checks on objects returned by _DSM method. Signed-off-by: Jiang Liu --- drivers/pci/pci-label.c | 121 +-- 1 file changed, 34 insertions(+), 87

[RFC Patch v1 04/13] ACPI, PCI: replace open-coded _DSM specific code with helper functions

2013-12-17 Thread Jiang Liu
Use helper functions to simplify _DSM related code in pci-label driver. Also enforce more strict checks on objects returned by _DSM method. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/pci/pci-label.c | 121 +-- 1 file changed, 34