summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2013-11-14 14:03:51 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-14 23:20:45 +0100
commit45c42a7f582cc07259bc78910de8b0b1c94094d5 (patch)
treeb932525f93bd44a4b3be6cc71b54b6a7cbb7d82c /drivers/i2c/i2c-core.c
parenta104b4d467d1c4a09727bac2816928aef3304d3a (diff)
downloadblackbird-op-linux-45c42a7f582cc07259bc78910de8b0b1c94094d5.tar.gz
blackbird-op-linux-45c42a7f582cc07259bc78910de8b0b1c94094d5.zip
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
OpenPOWER on IntegriCloud