aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2008-12-21 09:48:13 -0500
committerGeert Uytterhoeven <geert@linux-m68k.org>2009-01-12 14:56:32 -0500
commit2eab7ff843d2cb8c9b2ace869774bd85b2316090 (patch)
treecaa9982beb2e891234b3d9722ca655bfc2b2ef7b /drivers
parent96f47d6105203ab06c2004e26979dea153bce073 (diff)
fbdev: c2p - Rename c2p to c2p_planar
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/Makefile2
-rw-r--r--drivers/video/amifb.c6
-rw-r--r--drivers/video/c2p.h6
-rw-r--r--drivers/video/c2p_planar.c (renamed from drivers/video/c2p.c)9
4 files changed, 12 insertions, 11 deletions
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 4fc29eae515..be2b657546e 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -28,7 +28,7 @@ obj-$(CONFIG_FB_DDC) += fb_ddc.o
28obj-$(CONFIG_FB_DEFERRED_IO) += fb_defio.o 28obj-$(CONFIG_FB_DEFERRED_IO) += fb_defio.o
29 29
30# Hardware specific drivers go first 30# Hardware specific drivers go first
31obj-$(CONFIG_FB_AMIGA) += amifb.o c2p.o 31obj-$(CONFIG_FB_AMIGA) += amifb.o c2p_planar.o
32obj-$(CONFIG_FB_ARC) += arcfb.o 32obj-$(CONFIG_FB_ARC) += arcfb.o
33obj-$(CONFIG_FB_CLPS711X) += clps711xfb.o 33obj-$(CONFIG_FB_CLPS711X) += clps711xfb.o
34obj-$(CONFIG_FB_CYBER2000) += cyber2000fb.o 34obj-$(CONFIG_FB_CYBER2000) += cyber2000fb.o
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c
index b8e9a8682f2..100f2366146 100644
--- a/drivers/video/amifb.c
+++ b/drivers/video/amifb.c
@@ -2159,9 +2159,9 @@ static void amifb_imageblit(struct fb_info *info, const struct fb_image *image)
2159 src += pitch; 2159 src += pitch;
2160 } 2160 }
2161 } else { 2161 } else {
2162 c2p(info->screen_base, image->data, dx, dy, width, height, 2162 c2p_planar(info->screen_base, image->data, dx, dy, width,
2163 par->next_line, par->next_plane, image->width, 2163 height, par->next_line, par->next_plane,
2164 info->var.bits_per_pixel); 2164 image->width, info->var.bits_per_pixel);
2165 } 2165 }
2166} 2166}
2167 2167
diff --git a/drivers/video/c2p.h b/drivers/video/c2p.h
index 53641298b92..6c38d40427d 100644
--- a/drivers/video/c2p.h
+++ b/drivers/video/c2p.h
@@ -10,9 +10,9 @@
10 10
11#include <linux/types.h> 11#include <linux/types.h>
12 12
13extern void c2p(void *dst, const void *src, u32 dx, u32 dy, u32 width, 13extern void c2p_planar(void *dst, const void *src, u32 dx, u32 dy, u32 width,
14 u32 height, u32 dst_nextline, u32 dst_nextplane, 14 u32 height, u32 dst_nextline, u32 dst_nextplane,
15 u32 src_nextline, u32 bpp); 15 u32 src_nextline, u32 bpp);
16 16
17extern void c2p_iplan2(void *dst, const void *src, u32 dx, u32 dy, u32 width, 17extern void c2p_iplan2(void *dst, const void *src, u32 dx, u32 dy, u32 width,
18 u32 height, u32 dst_nextline, u32 src_nextline, 18 u32 height, u32 dst_nextline, u32 src_nextline,
diff --git a/drivers/video/c2p.c b/drivers/video/c2p_planar.c
index 1238c8b912e..ec7ac8526f0 100644
--- a/drivers/video/c2p.c
+++ b/drivers/video/c2p_planar.c
@@ -71,7 +71,7 @@ static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp,
71 71
72 72
73 /* 73 /*
74 * c2p - Copy 8-bit chunky image data to a planar frame buffer 74 * c2p_planar - Copy 8-bit chunky image data to a planar frame buffer
75 * @dst: Starting address of the planar frame buffer 75 * @dst: Starting address of the planar frame buffer
76 * @dx: Horizontal destination offset (in pixels) 76 * @dx: Horizontal destination offset (in pixels)
77 * @dy: Vertical destination offset (in pixels) 77 * @dy: Vertical destination offset (in pixels)
@@ -83,8 +83,9 @@ static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp,
83 * @bpp: Bits per pixel of the planar frame buffer (1-8) 83 * @bpp: Bits per pixel of the planar frame buffer (1-8)
84 */ 84 */
85 85
86void c2p(void *dst, const void *src, u32 dx, u32 dy, u32 width, u32 height, 86void c2p_planar(void *dst, const void *src, u32 dx, u32 dy, u32 width,
87 u32 dst_nextline, u32 dst_nextplane, u32 src_nextline, u32 bpp) 87 u32 height, u32 dst_nextline, u32 dst_nextplane,
88 u32 src_nextline, u32 bpp)
88{ 89{
89 union { 90 union {
90 u8 pixels[32]; 91 u8 pixels[32];
@@ -150,6 +151,6 @@ void c2p(void *dst, const void *src, u32 dx, u32 dy, u32 width, u32 height,
150 dst += dst_nextline; 151 dst += dst_nextline;
151 } 152 }
152} 153}
153EXPORT_SYMBOL_GPL(c2p); 154EXPORT_SYMBOL_GPL(c2p_planar);
154 155
155MODULE_LICENSE("GPL"); 156MODULE_LICENSE("GPL");