ACPI: use more understandable bus_id for ACPI devices
authorZhang Rui <rui.zhang@intel.com>
Thu, 4 Jan 2007 07:03:18 +0000 (15:03 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 6 Jan 2007 04:43:00 +0000 (23:43 -0500)
commitbb0958544f3c7c016b2a3025ab3694363e403aa1
treebd7ea8032861f5b4097ab10334ad5c80dfa397ad
parent2786f6e388e9dfe9e7b1c3c6bd7fcfba9cfb9831
ACPI: use more understandable bus_id for ACPI devices

Some of the ACPI devices use the internal fake hids
which are exposed to userspace as devces' bus_id after sysfs conversion.
To make it more friendly, we convert them to more understandable strings.

For those devices w/o PNPids, we use "device:instance_no" as the bus_id
instead of "PNPIDNON:instance_no".

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c
include/acpi/acpi_bus.h
include/acpi/acpi_drivers.h