chiark / gitweb /
path_id: recognize ACPI parent devices
[elogind.git] / extras / path_id / path_id.c
index 98f0e40..928aa67 100644 (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, "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");
                } else if (strcmp(subsys, "xen") == 0) {
                        path_prepend(&path, "xen-%s", udev_device_get_sysname(parent));
                        parent = skip_subsystem(parent, "xen");