diff options
author | Yurii Pavlovskyi <yurii.pavlovskyi@gmail.com> | 2019-05-14 21:59:01 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-06-17 15:22:47 +0300 |
commit | e7488e58c7cfe4be0c52db68622a0397bb75258e (patch) | |
tree | 716fc0ec3d9b5e4899d1ba84579d71c504629484 /drivers/ata/acard-ahci.c | |
parent | 98e865a522983f2afde075648ec9d15ea4bb9194 (diff) | |
download | linux-e7488e58c7cfe4be0c52db68622a0397bb75258e.tar.xz |
platform/x86: wmi: Add function to get _UID of WMI device
Add a new function to acpi.h / wmi.c that returns _UID of the ACPI WMI
device. For example, it returns "ATK" for the following declaration in
DSDT:
Device (ATKD)
{
Name (_HID, "PNP0C14" /* Windows Management Instrumentation Device */)
// _HID: Hardware ID
Name (_UID, "ATK") // _UID: Unique ID
..
Generally, it is possible that multiple PNP0C14 ACPI devices are present in
the system as mentioned in the commit message of commit bff431e49ff5
("ACPI: WMI: Add ACPI-WMI mapping driver").
Therefore the _UID is returned for a specific ACPI device that declares the
given GUID, to which it is also mapped by other methods of wmi module.
Signed-off-by: Yurii Pavlovskyi <yurii.pavlovskyi@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/ata/acard-ahci.c')
0 files changed, 0 insertions, 0 deletions