]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / utils: Rename acpi_dev_present()
authorLukas Wunner <lukas@wunner.de>
Thu, 24 Mar 2016 12:15:20 +0000 (13:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 Apr 2016 01:12:58 +0000 (03:12 +0200)
commit8b8e3a288e0717c6bc4fb48a90351c5f805da345
treea692971cf4b6a9a36b81210d17e33d1107429f1a
parent4358ad30b78a3e000ac991e7bd80536e53e71f4e
ACPI / utils: Rename acpi_dev_present()

acpi_dev_present() was originally named after pci_dev_present()
to signify the similarity of the two functions.

However Rafael J. Wysocki pointed out that the exported function
acpi_dev_present() is easily confused with the non-exported
acpi_device_is_present(). Additionally in ACPI parlance the term
"present" usually refers to the "device is present" bit returned
by the _STA control method, yet acpi_dev_present() merely checks
presence in the namespace. It does not invoke _STA at all, let
alone check the "device is present" bit.

As suggested by Rafael, rename the function to acpi_dev_found()
and adjust all existing call sites.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/utils.c
include/acpi/acpi_bus.h
include/linux/apple-gmux.h
sound/pci/hda/thinkpad_helper.c
sound/soc/intel/boards/cht_bsw_max98090_ti.c
sound/soc/intel/boards/cht_bsw_rt5645.c