summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-12-09 21:22:31 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-12-09 21:22:31 +0000
commit5bf548481dabd577d8a76364aaa252b89964a5f2 (patch)
treeebb37e02e839274726bc88885d7386cef834d378 /sys/dev
parentba86737df47094b68484363f9f96912da9f676e5 (diff)
Better describe the magic done by umass_fixup_sony(), okay krw@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/umass_quirks.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/umass_quirks.c b/sys/dev/usb/umass_quirks.c
index 57bdd34035c..6bc85c94a28 100644
--- a/sys/dev/usb/umass_quirks.c
+++ b/sys/dev/usb/umass_quirks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass_quirks.c,v 1.23 2006/12/09 21:06:12 pedro Exp $ */
+/* $OpenBSD: umass_quirks.c,v 1.24 2006/12/09 21:22:30 pedro Exp $ */
/* $NetBSD: umass_quirks.c,v 1.67 2004/06/28 07:49:16 mycroft Exp $ */
/*
@@ -519,6 +519,10 @@ umass_fixup_sony(struct umass_softc *sc)
id = usbd_get_interface_descriptor(sc->sc_iface);
if (id->bInterfaceSubClass == 0xff) {
dd = usbd_get_device_descriptor(sc->sc_udev);
+ /*
+ * Many Sony DSC cameras share the same product ID, so the
+ * revision number is used to distinguish between them.
+ */
switch (UGETW(dd->bcdDevice)) {
case 0x600: /* Sony DSC-W50, rev 6.00 */
case 0x500: /* Sony DSC-P41, rev 5.00 */