path_id: recognize ACPI parent devices

We need to tag the power input button for multi-seat.
This commit is contained in:
Kay Sievers
2011-07-10 05:32:15 +02:00
parent a07e011434
commit 0438d54ed9
+3
View File
@@ -496,6 +496,9 @@ int main(int argc, char **argv)
} else if (strcmp(subsys, "platform") == 0) {
path_prepend(&path, "platform-%s", udev_device_get_sysname(parent));
parent = skip_subsystem(parent, "platform");
} else if (strcmp(subsys, "acpi") == 0) {
path_prepend(&path, "acpi-%s", udev_device_get_sysname(parent));
parent = skip_subsystem(parent, "acpi");
} else if (strcmp(subsys, "xen") == 0) {
path_prepend(&path, "xen-%s", udev_device_get_sysname(parent));
parent = skip_subsystem(parent, "xen");