]> git.baikalelectronics.ru Git - kernel.git/commit
PNP: add interface to retrieve ACPI device from a PNPACPI device
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 18 Nov 2009 00:05:19 +0000 (17:05 -0700)
committerLen Brown <len.brown@intel.com>
Tue, 15 Dec 2009 22:35:26 +0000 (17:35 -0500)
commit2652538294180e4c92d6882cadb09e81f39bfb08
treec487e3f9b3b56cc829ea2362a33b888a42d83f8f
parentd2a02953cac10506b675f941368961ad779d15ba
PNP: add interface to retrieve ACPI device from a PNPACPI device

Add pnp_acpi_device(pnp_dev), which takes a PNP device and returns the
associated ACPI device (or NULL, if the device is not a PNPACPI device).

This allows us to write a PNP driver that can manage both traditional
PNPBIOS and ACPI devices, treating ACPI-only functionality as an optional
extension.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/pnpacpi/core.c
include/linux/pnp.h