diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-01-04 11:43:00 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2009-01-12 20:56:30 +0100 |
commit | 1f034456c140a8677d0ff3a9bdb3c4b620aae2cb (patch) | |
tree | 223020a4d37b88c82adf33181ee33e9b371d26bc /drivers/video/c2p.h | |
parent | fbdev: c2p - Correct indentation (diff) | |
download | linux-1f034456c140a8677d0ff3a9bdb3c4b620aae2cb.tar.xz linux-1f034456c140a8677d0ff3a9bdb3c4b620aae2cb.zip |
fbdev: c2p - Cleanups
- Improve comments and naming
- Convert macros to static inline functions
- Remove superfluous `break' after `return'
- Make sure we get a build-time error (undefined reference to
'c2p_unsupported') in case of future misuse
- Replace `unsigned long' by `u32' in comp(), as that's what all callers use
- Use {get,put}_unaligned_be32() in store_planar{,_masked}()
- Use void * for arbitrary pointers
- Use a union to represent pixels/words, to avoid casts
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/video/c2p.h')
-rw-r--r-- | drivers/video/c2p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/c2p.h b/drivers/video/c2p.h index c77cbf17e043..daafd872601c 100644 --- a/drivers/video/c2p.h +++ b/drivers/video/c2p.h @@ -10,7 +10,7 @@ #include <linux/types.h> -extern void c2p(u8 *dst, const u8 *src, u32 dx, u32 dy, u32 width, u32 height, - u32 dst_nextline, u32 dst_nextplane, u32 src_nextline, - u32 bpp); +extern void c2p(void *dst, const void *src, u32 dx, u32 dy, u32 width, + u32 height, u32 dst_nextline, u32 dst_nextplane, + u32 src_nextline, u32 bpp); |