Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: use leX_to_cpu in place of __fswabX

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

+3 -3
+3 -3
arch/parisc/include/asm/io.h
··· 176 176 177 177 /* readb can never be const, so use __fswab instead of le*_to_cpu */ 178 178 #define readb(addr) __raw_readb(addr) 179 - #define readw(addr) __fswab16(__raw_readw(addr)) 180 - #define readl(addr) __fswab32(__raw_readl(addr)) 181 - #define readq(addr) __fswab64(__raw_readq(addr)) 179 + #define readw(addr) le16_to_cpu(__raw_readw(addr)) 180 + #define readl(addr) le32_to_cpu(__raw_readl(addr)) 181 + #define readq(addr) le64_to_cpu(__raw_readq(addr)) 182 182 #define writeb(b, addr) __raw_writeb(b, addr) 183 183 #define writew(b, addr) __raw_writew(cpu_to_le16(b), addr) 184 184 #define writel(b, addr) __raw_writel(cpu_to_le32(b), addr)