Skip to contentSkip to conversation

ACPI: Add acpi_device_uid() for convenience

PATCH Applied Adrian Hunter 2 participants 2 messages Mar 17, 2015 – Mar 18, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: Add acpi_device_uid() for convenience

Add a nicer way to get the ACPI _UID.

---
 include/acpi/acpi_bus.h | 1 +
 1 file changed, 1 insertion(+)
include/acpi/acpi_bus.h +1 -0
index 61e32ec..f8009d9 100644
@@ -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)
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 3 lines · Adrian Hunter

Add a nicer way to get the ACPI _UID.

Queued up for 4.1, thanks!

Quoted 17 lines
---
 include/acpi/acpi_bus.h | 1 +
 1 file changed, 1 insertion(+)
include/acpi/acpi_bus.h +1 -0
index 61e32ec..f8009d9 100644
@@ -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)
 
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.