ACPI: Export acpi_(bay)|(dock)_match() from scan.c
authorJiang Liu <jiang.liu@huawei.com>
Fri, 28 Jun 2013 16:24:41 +0000 (00:24 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 Jul 2013 23:33:10 +0000 (01:33 +0200)
commitebf4df8db0e7e5db9f7fca5fcd0c2b90ac954385
treea48d19b61780fe028d710e7210c5059a56739d3f
parent7d2421f84b445dc48c68d33911f1fd6ce6853ee3
ACPI: Export acpi_(bay)|(dock)_match() from scan.c

Functions acpi_dock_match() and acpi_bay_match() in scan.c can be
shared with dock.c to reduce code duplication, so export them as
global functions.

Also add a new function acpi_ata_match() to check whether an ACPI
device object represents an ATA device.

[rjw: Changelog]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c
include/acpi/acpi_bus.h