From: Al Viro Date: Sat, 22 Dec 2007 18:56:13 +0000 (+0000) Subject: 3c574 and 3c589 endianness fixes (.24?) X-Git-Tag: v2.6.24-rc7~40^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1e247ad8e4ff29b5c7fa2b9a081b4a0f483b0d3;p=pandora-kernel.git 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed