aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2013-11-14 07:03:51 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-14 17:20:45 -0500
commit45c42a7f582cc07259bc78910de8b0b1c94094d5 (patch)
treeb932525f93bd44a4b3be6cc71b54b6a7cbb7d82c /drivers/i2c/i2c-core.c
parenta104b4d467d1c4a09727bac2816928aef3304d3a (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 <jarkko.nikula@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
0 files changed, 0 insertions, 0 deletions