]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI: Fix a hard coding style when determining if a device is a container.
authorTang Chen <tangchen@cn.fujitsu.com>
Mon, 22 Oct 2012 23:31:29 +0000 (01:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Oct 2012 23:31:29 +0000 (01:31 +0200)
commite6081a678b43d1c2cac9dd087299c6dbcacaf73f
tree3005050b145d2e25151b6d3feea5811ed9f506a2
parentebe217ed872a937e75c2a3ac9ed15b0f8eccca83
ACPI: Fix a hard coding style when determining if a device is a container.

"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>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/container.c