ACPI: factor out device type and status checking
commit778cbc1d3abd434b6d882714630235e3711bb15b
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 21 Sep 2009 19:30:06 +0000 (21 19:30 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 25 Sep 2009 18:24:31 +0000 (25 14:24 -0400)
tree5a81030166825fabf4a2e81bf9a7f5440133c3d8
parent402ac53614bce0c273c73a80339556bf56dd3d39
ACPI: factor out device type and status checking

This patch adds acpi_bus_type_and_status(), which determines the type
of the object and whether we want to build an acpi_device for it.  If
it is acpi_device-worthy, it returns the type and the device's current
status.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c