ACPI: Remove acpi_device dependency in acpi_device_set_id()
authorToshi Kani <toshi.kani@hp.com>
Mon, 4 Mar 2013 21:30:41 +0000 (21:30 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 22:49:38 +0000 (23:49 +0100)
commitd4e1a692e9e85f9cbee090ea8d6158b133d32157
treed6b76ddfc967c7631f0c192af06fb3b7b70047c6
parentb09753ec80914424527955147c359e9ac3a87682
ACPI: Remove acpi_device dependency in acpi_device_set_id()

This patch updates the internal operations of acpi_device_set_id()
to setup acpi_device_pnp without using acpi_device.  There is no
functional change to acpi_device_set_id() in this patch.

acpi_pnp_type is added to acpi_device_pnp, so that PNPID type is
self-contained within acpi_device_pnp.  acpi_add_id(), acpi_bay_match(),
acpi_dock_match(), acpi_ibm_smbus_match() and acpi_is_video_device()
are changed to take acpi_handle as an argument, instead of acpi_device.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c
drivers/acpi/video_detect.c
drivers/gpu/drm/i915/intel_opregion.c
include/acpi/acpi_bus.h
include/linux/acpi.h