]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Provide acpi_dev_name accessor for struct acpi_device device name
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 14 Nov 2013 12:03:51 +0000 (14:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 14 Nov 2013 22:20:45 +0000 (23:20 +0100)
commit7a3a1fd07e3253f907415b512a27380720c18f0e
treeb932525f93bd44a4b3be6cc71b54b6a7cbb7d82c
parent89798bf350f123561f75e4f5e146d5a1e4498d00
ACPI: Provide acpi_dev_name accessor for struct acpi_device device name

struct acpi_device fields are only available when CONFIG_ACPI is set. We may
find use for dev_name(&adev->dev) in generic code that is build also without
CONFIG_ACPI is set but currently this requires #ifdef CONFIG_ACPI churn.

Provide here an accessor that returns dev_name of embedded struct device dev
in struct acpi_device or NULL depending on CONFIG_ACPI setting.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/acpi.h