projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b858d
)
ACPI: Add acpi_device_uid() for convenience
author
Adrian Hunter
<adrian.hunter@intel.com>
Tue, 17 Mar 2015 09:48:30 +0000
(11:48 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 18 Mar 2015 01:05:20 +0000
(
02:05
+0100)
Add a nicer way to get the ACPI _UID.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/acpi_bus.h
patch
|
blob
|
history
diff --git
a/include/acpi/acpi_bus.h
b/include/acpi/acpi_bus.h
index 61e32ec1fc4d40230965e4d2915b4701ec54b5c4..f8009d99190a04bce3801218db1fecd8e29382f7 100644
(file)
--- a/
include/acpi/acpi_bus.h
+++ b/
include/acpi/acpi_bus.h
@@
-252,6
+252,7
@@
struct acpi_device_pnp {
#define acpi_device_bid(d) ((d)->pnp.bus_id)
#define acpi_device_adr(d) ((d)->pnp.bus_address)
const char *acpi_device_hid(struct acpi_device *device);
+#define acpi_device_uid(d) ((d)->pnp.unique_id)
#define acpi_device_name(d) ((d)->pnp.device_name)
#define acpi_device_class(d) ((d)->pnp.device_class)