Re: [PATCH v3] Fix a hard coding style when determining if a device is a container.

2012-10-24 Thread Bjorn Helgaas
On Wed, Oct 24, 2012 at 12:11 AM, Tang Chen wrote: > "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. > > change log

[PATCH v3] Fix a hard coding style when determining if a device is a container.

2012-10-23 Thread Tang Chen
"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. change log v2 -> v3: 1. change the is_container_device()'s return value ty