summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_rum.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2007-05-21 06:10:43 +0000
committerjsg <jsg@openbsd.org>2007-05-21 06:10:43 +0000
commitaeed98a5ce2f49c42e596665a29dadf7f4617aeb (patch)
tree424b7cb11d27dc30fe15a5601dde1b4e363520bf /sys/dev/usb/if_rum.c
parentRemove logprintf macro (diff)
downloadwireguard-openbsd-aeed98a5ce2f49c42e596665a29dadf7f4617aeb.tar.xz
wireguard-openbsd-aeed98a5ce2f49c42e596665a29dadf7f4617aeb.zip
Remove le{16,32}toh macros
Diffstat (limited to 'sys/dev/usb/if_rum.c')
-rw-r--r--sys/dev/usb/if_rum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index c20370b678a..c15595738f1 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rum.c,v 1.55 2007/05/21 05:40:27 jsg Exp $ */
+/* $OpenBSD: if_rum.c,v 1.56 2007/05/21 06:10:43 jsg Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
@@ -1857,7 +1857,7 @@ rum_read_eeprom(struct rum_softc *sc)
DPRINTF(("RF revision=%d\n", sc->rf_rev));
rum_eeprom_read(sc, RT2573_EEPROM_CONFIG2, &val, 2);
- val = le16toh(val);
+ val = letoh16(val);
sc->ext_5ghz_lna = (val >> 6) & 0x1;
sc->ext_2ghz_lna = (val >> 4) & 0x1;
@@ -1878,7 +1878,7 @@ rum_read_eeprom(struct rum_softc *sc)
sc->rssi_2ghz_corr, sc->rssi_5ghz_corr));
rum_eeprom_read(sc, RT2573_EEPROM_FREQ_OFFSET, &val, 2);
- val = le16toh(val);
+ val = letoh16(val);
if ((val & 0xff) != 0xff)
sc->rffreq = val & 0xff;