diff mbox

ACPI: Add acpi_device_uid() for convenience

Message ID 1426585710-31947-1-git-send-email-adrian.hunter@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Adrian Hunter March 17, 2015, 9:48 a.m. UTC
Add a nicer way to get the ACPI _UID.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
---
 include/acpi/acpi_bus.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Rafael J. Wysocki March 18, 2015, 3:25 p.m. UTC | #1
On Tuesday, March 17, 2015 11:48:30 AM Adrian Hunter wrote:
> Add a nicer way to get the ACPI _UID.
> 
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>

Queued up for 4.1, thanks!

> ---
>  include/acpi/acpi_bus.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
> index 61e32ec..f8009d9 100644
> --- 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)
>  
>
diff mbox

Patch

diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 61e32ec..f8009d9 100644
--- 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)