diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-12-08 18:54:33 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-12-08 18:54:33 +0000 |
commit | c54d27eb35d9f6942291be4c5927f3d7636ad7f0 (patch) | |
tree | aa544c6f053e256df998dd628ded2ed1f16a0b00 /sys/dev/usb | |
parent | f49aebbb93650c2023460bd0d2f197517c9e39a0 (diff) |
- Firmware header field "len" for Ricoh devices is uint8_t not uint16_t.
- Consistency in comments.
Diffstat (limited to 'sys/dev/usb')
-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); |