Skip to content

Commit

Permalink
ACPI: Add acpi_device_uid() for convenience
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Hunter authored and Rafael J. Wysocki committed Mar 18, 2015
1 parent 56b858d commit 359597c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/acpi/acpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 359597c

Please sign in to comment.