diff options
author | 2008-05-26 11:29:50 +0000 | |
---|---|---|
committer | 2008-05-26 11:29:50 +0000 | |
commit | 6187ee04b59f4a06a78a62b403e599b839d4b54c (patch) | |
tree | 1d4e6200e5e8caa6689905b4ddaabe1c0b173fbb | |
parent | Properly handle usbd_get_interface_descriptor() returning NULL. (diff) | |
download | wireguard-openbsd-6187ee04b59f4a06a78a62b403e599b839d4b54c.tar.xz wireguard-openbsd-6187ee04b59f4a06a78a62b403e599b839d4b54c.zip |
Limit to 80 char width and tweak comments for readability.
-rw-r--r-- | sys/dev/usb/umsm.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/dev/usb/umsm.c b/sys/dev/usb/umsm.c index 98486b99d2c..3bae5c1e202 100644 --- a/sys/dev/usb/umsm.c +++ b/sys/dev/usb/umsm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umsm.c,v 1.26 2008/05/26 11:20:39 jsg Exp $ */ +/* $OpenBSD: umsm.c,v 1.27 2008/05/26 11:29:50 jsg Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -183,13 +183,18 @@ umsm_attach(struct device *parent, struct device *self, void *aux) id = usbd_get_interface_descriptor(sc->sc_iface); if (id == NULL || id->bInterfaceClass == UICLASS_MASS) { - /* Huawei E220 require special command to change its mode to modem */ + /* + * Huawei E220 requires a special command to change into + * modem mode + */ if (uaa->vendor == USB_VENDOR_HUAWEI && - uaa->product == USB_PRODUCT_HUAWEI_E220 && uaa->ifaceno == 0) { + uaa->product == USB_PRODUCT_HUAWEI_E220 && + uaa->ifaceno == 0) { umsm_e220_changemode(uaa->device); /* - * the device will reset its own bus from device side, therefore - * we only return from this device probe process. + * The device will reset its own bus from the + * device side, so we just return from this device + * probe process. */ printf("%s: umass only mode. need to reattach\n", sc->sc_dev.dv_xname); |