diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-10-23 18:08:35 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-10-23 18:08:35 +0000 |
commit | 737820b451454e4d20ebf5eecaac30b492c4e080 (patch) | |
tree | c10e65e0edf2db58ec967c6325ae1c67b7901697 /sys/dev/usb | |
parent | eb456c29e0696dc355398315307ba43a13c493c0 (diff) |
simplify zyd_read_eeprom().
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_zyd.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c index 552ca178d96..a8fc0ea2787 100644 --- a/sys/dev/usb/if_zyd.c +++ b/sys/dev/usb/if_zyd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_zyd.c,v 1.32 2006/10/23 17:44:15 damien Exp $ */ +/* $OpenBSD: if_zyd.c,v 1.33 2006/10/23 18:08:34 damien Exp $ */ /*- * Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr> @@ -1095,23 +1095,19 @@ zyd_read_eeprom(struct zyd_softc *sc) (void)zyd_read16(sc, ZYD_EEPROM_PWR_CAL + i, &val); sc->pwr_cal[i * 2] = val >> 8; sc->pwr_cal[i * 2 + 1] = val & 0xff; - } - for (i = 0; i < 7; i++) { + (void)zyd_read16(sc, ZYD_EEPROM_PWR_INT + i, &val); sc->pwr_int[i * 2] = val >> 8; sc->pwr_int[i * 2 + 1] = val & 0xff; - } - for (i = 0; i < 7; i++) { + (void)zyd_read16(sc, ZYD_EEPROM_36M_CAL + i, &val); sc->ofdm36_cal[i * 2] = val >> 8; sc->ofdm36_cal[i * 2 + 1] = val & 0xff; - } - for (i = 0; i < 7; i++) { + (void)zyd_read16(sc, ZYD_EEPROM_48M_CAL + i, &val); sc->ofdm48_cal[i * 2] = val >> 8; sc->ofdm48_cal[i * 2 + 1] = val & 0xff; - } - for (i = 0; i < 7; i++) { + (void)zyd_read16(sc, ZYD_EEPROM_54M_CAL + i, &val); sc->ofdm54_cal[i * 2] = val >> 8; sc->ofdm54_cal[i * 2 + 1] = val & 0xff; |