ACPI: Fix a hard coding style when determining if a device is a container, v3
authorTang Chen <tangchen@cn.fujitsu.com>
Fri, 26 Oct 2012 11:38:16 +0000 (13:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:16:01 +0000 (00:16 +0100)
commit594df89a59cf2a2afc22fe27f508dd864d1edb5f
treea502015feea0df21b4f899a8c7ed84f8ea4f648d
parent0a290ac4252c85205cb924ff7f6da10cfd20fb01
ACPI: Fix a hard coding style when determining if a device is a container, v3

"ACPI0004","PNP0A05" and "PNP0A06" are all defined in array
container_device_ids[], so use it, but not the hard coding style.

Also, introduce a new API is_container_device() to determine if a
device is a container device.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/container.c