]> err.no Git - linux-2.6/commit
3c574 and 3c589 endianness fixes (.24?)
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 22 Dec 2007 18:56:13 +0000 (18:56 +0000)
committerJeff Garzik <jeff@garzik.org>
Sun, 23 Dec 2007 03:53:07 +0000 (22:53 -0500)
commitb1e247ad8e4ff29b5c7fa2b9a081b4a0f483b0d3
tree02c7d1ef91b0b8606309dda78455c00d0e2aadd2
parentcf96237837ec6d4fc48bc2f735c71027cc0fc5fa
3c574 and 3c589 endianness fixes (.24?)

Both store MAC address in CIS; there's no decoder for that
type (0x88) so the drivers work with raw data.  It is
byteswapped, so ntohs() works for little-endian, but for
big-endian it's wrong.  ntohs(le16_to_cpu()) does the
right thing on both (and always expands to swab16()).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcmcia/3c574_cs.c
drivers/net/pcmcia/3c589_cs.c