diff options
author | 2008-12-08 18:54:32 +0000 | |
---|---|---|
committer | 2008-12-08 18:54:32 +0000 | |
commit | f6271c78de4182476737048e37fdf3cce5797eaa (patch) | |
tree | d0618eaeb738af4b9e85f1b7883f5d538fed9d8d | |
parent | Add ability to load firmware for devices which require it. (diff) | |
download | wireguard-openbsd-f6271c78de4182476737048e37fdf3cce5797eaa.tar.xz wireguard-openbsd-f6271c78de4182476737048e37fdf3cce5797eaa.zip |
- Firmware header field "len" for Ricoh devices is uint8_t not uint16_t.
- Consistency in comments.
-rw-r--r-- | sys/dev/usb/uvideo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 3f79cf0cffa..53d925861d7 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.101 2008/12/08 18:33:24 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.102 2008/12/08 18:54:32 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -3039,8 +3039,8 @@ uvideo_ucode_loader_ricoh(struct uvideo_softc *sc) usbd_status error; uint8_t *ucode; size_t ucode_size; - uint8_t buf; - uint16_t len, addr; + uint8_t buf, len; + uint16_t addr; int offset, remain; /* get device microcode status */ @@ -3063,7 +3063,7 @@ uvideo_ucode_loader_ricoh(struct uvideo_softc *sc) DPRINTF(1, "%s: microcode not loaded\n", DEVNAME(sc)); } - /* open ucode file */ + /* open microcode file */ error = loadfirmware(sc->sc_ucode->ucode_name, &ucode, &ucode_size); if (error != 0) { printf("%s: loadfirmware error=%d!\n", DEVNAME(sc), error); |