diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/linux-hotplug/print-usb-usermap.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packaging/linux-hotplug/print-usb-usermap.c b/packaging/linux-hotplug/print-usb-usermap.c index 66bfa13d0..0631a25ec 100644 --- a/packaging/linux-hotplug/print-usb-usermap.c +++ b/packaging/linux-hotplug/print-usb-usermap.c @@ -119,11 +119,15 @@ static int print_usb_usermap(const char *usermap_script, const int add_comments) if (flags != 0) { printf ("# %s\n", a.model); + /* The first 3 lone bytes are the device class. + * the second 3 lone bytes are the interface class. + * for PTP we want the interface class. + */ printf ("%-20s " "0x%04x 0x%04x 0x%04x 0x0000 " - "0x0000 0x%02x 0x%02x " - "0x%02x 0x00 0x00 " - "0x00 0x00000000\n", + "0x0000 0x00 0x00 " + "0x00 0x%02x 0x%02x " + "0x%02x 0x00000000\n", usermap_script, flags, a.usb_vendor, a.usb_product, class, subclass, proto); |