summaryrefslogtreecommitdiffstats
path: root/drivers/video/nvidia/nv_local.h
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-12-08 02:36:26 -0800
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 08:28:40 -0800
commit1c6676825fe4cc03a71f253fc3e16ec17c6a3195 (patch)
treee4d8b21dc6cc3df4f5c1482a0c546ffadb61f748 /drivers/video/nvidia/nv_local.h
parent906d66df18faa4aac8d898ae6920d1014694a932 (diff)
downloadop-kernel-dev-1c6676825fe4cc03a71f253fc3e16ec17c6a3195.zip
op-kernel-dev-1c6676825fe4cc03a71f253fc3e16ec17c6a3195.tar.gz
[PATCH] video: use bitrev8
Use bitrev8 for nvidiafb, rivafb, and tgafb drivers Cc: Antonino Daplas <adaplas@pol.net> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/nvidia/nv_local.h')
-rw-r--r--drivers/video/nvidia/nv_local.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/video/nvidia/nv_local.h b/drivers/video/nvidia/nv_local.h
index 4243d7f..e009d24 100644
--- a/drivers/video/nvidia/nv_local.h
+++ b/drivers/video/nvidia/nv_local.h
@@ -96,13 +96,16 @@
#define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2)
#ifdef __LITTLE_ENDIAN
+
+#include <linux/bitrev.h>
+
#define reverse_order(l) \
do { \
u8 *a = (u8 *)(l); \
- *a = byte_rev[*a], a++; \
- *a = byte_rev[*a], a++; \
- *a = byte_rev[*a], a++; \
- *a = byte_rev[*a]; \
+ a[0] = bitrev8(a[0]); \
+ a[1] = bitrev8(a[1]); \
+ a[2] = bitrev8(a[2]); \
+ a[3] = bitrev8(a[3]); \
} while(0)
#else
#define reverse_order(l) do { } while(0)
OpenPOWER on IntegriCloud