]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fbdev: c2p - Cleanups
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 4 Jan 2009 10:43:00 +0000 (11:43 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 12 Jan 2009 19:56:30 +0000 (20:56 +0100)
commit1f034456c140a8677d0ff3a9bdb3c4b620aae2cb
tree223020a4d37b88c82adf33181ee33e9b371d26bc
parent8280eb8a33d60be4f5fa76d5144f66656c71a680
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>
drivers/video/c2p.c
drivers/video/c2p.h