]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Rename acpi_is_serial_bus_slave() for more general use
authorJohn Garry <john.garry@huawei.com>
Wed, 14 Mar 2018 18:15:56 +0000 (02:15 +0800)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 4 Apr 2018 13:42:49 +0000 (08:42 -0500)
commit0807768904e00c486ad0010347d2adadf8bc9a3c
tree25e1c7533bd7cac9fe11e4678853f3ca12165484
parent84d09107bf2f773a792b0b29de05d299e6864c98
ACPI / scan: Rename acpi_is_serial_bus_slave() for more general use

Currently the ACPI scan has special handling for serial bus slaves, in that
it makes it the responsibility of the slave device's parent to enumerate
the device.

To support other types of slave devices which require the same special
handling but where the bus is not strictly a serial bus, such as devices on
the HiSilicon LPC controller bus, rename acpi_is_serial_bus_slave() to
acpi_device_enumeration_by_parent(), so that the name can fit the wider
purpose.

Also rename the associated device flag acpi_device_flags.serial_bus_slave
to .enumeration_by_parent.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c
include/acpi/acpi_bus.h