diff options
author | Jarkko Nikula <[email protected]> | 2013-11-14 14:03:51 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2013-11-14 23:20:45 +0100 |
commit | 45c42a7f582cc07259bc78910de8b0b1c94094d5 (patch) | |
tree | b932525f93bd44a4b3be6cc71b54b6a7cbb7d82c /lib/test-string_helpers.c | |
parent | a104b4d467d1c4a09727bac2816928aef3304d3a (diff) |
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions