summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-05-26 17:39:32 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-05-26 17:39:32 +0200
commit3821339d2d0f515313b31f0b7e9bd158626e2bec (patch)
treefa7a64392b20bf0635ecedeced44fe81d4ee8c95 /extras
parent1eb037a7bf22b6e4f3a778d0fbbe16675b6df712 (diff)
path_id: allow to be asked about usb_devices not only usb_interfaces
Diffstat (limited to 'extras')
-rw-r--r--extras/path_id/path_id.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c
index 62d26d8c4d..683f78d26e 100644
--- a/extras/path_id/path_id.c
+++ b/extras/path_id/path_id.c
@@ -355,7 +355,9 @@ static struct udev_device *handle_usb(struct udev_device *parent, char **path)
const char *port;
devtype = udev_device_get_devtype(parent);
- if (devtype == NULL || strcmp(devtype, "usb_interface") != 0)
+ if (devtype == NULL)
+ return parent;
+ if (strcmp(devtype, "usb_interface") != 0 && strcmp(devtype, "usb_device") != 0)
return parent;
str = udev_device_get_sysname(parent);