summaryrefslogtreecommitdiff
path: root/drivers/video/syscopyarea.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2007-05-08 11:39:08 +0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 22:15:30 +0400
commitdc0e6e0544f1cb2af44e5d7a7e68acda05dec6fa (patch)
tree7f5d28d54c333c5ba84bb4b4afe3821246696818 /drivers/video/syscopyarea.c
parent52102c07a68a26fe6f8926e6a8497b577655f18a (diff)
downloadlinux-dc0e6e0544f1cb2af44e5d7a7e68acda05dec6fa.tar.xz
fbdev: consolidate common drawing functions into a header file
Consolidate common drawing functions into a single header file. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/syscopyarea.c')
-rw-r--r--drivers/video/syscopyarea.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/syscopyarea.c b/drivers/video/syscopyarea.c
index e3488932c7b3..37af10ab8f52 100644
--- a/drivers/video/syscopyarea.c
+++ b/drivers/video/syscopyarea.c
@@ -19,17 +19,7 @@
#include <linux/slab.h>
#include <asm/types.h>
#include <asm/io.h>
-
- /*
- * Compose two values, using a bitmask as decision value
- * This is equivalent to (a & mask) | (b & ~mask)
- */
-
-static inline unsigned long
-comp(unsigned long a, unsigned long b, unsigned long mask)
-{
- return ((a ^ b) & mask) ^ b;
-}
+#include "fb_draw.h"
/*
* Generic bitwise copy algorithm