]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ACPI / scan: Introduce struct acpi_scan_handler
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jan 2013 13:27:29 +0000 (14:27 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jan 2013 13:27:29 +0000 (14:27 +0100)
commitca589f9469641916f4f9bd6a820012a27102ef63
tree2bce51955303a0d33e2c52d37f0052ac19c1d445
parent8b4e2fa4ff72ba2c9f01af8def15d4c4eeeeed64
ACPI / scan: Introduce struct acpi_scan_handler

Introduce struct acpi_scan_handler for representing objects that
will do configuration tasks depending on ACPI device nodes'
hardware IDs (HIDs).

Currently, those tasks are done either directly by the ACPI namespace
scanning code or by ACPI device drivers designed specifically for
this purpose.  None of the above is desirable, however, because
doing that directly in the namespace scanning code makes that code
overly complicated and difficult to follow and doing that in
"special" device drivers leads to a great deal of confusion about
their role and to confusing interactions with the driver core (for
example, sysfs directories are created for those drivers, but they
are completely unnecessary and only increase the kernel's memory
footprint in vain).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Documentation/acpi/scan_handlers.txt [new file with mode: 0644]
drivers/acpi/scan.c
include/acpi/acpi_bus.h