aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c2410fb.h
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2007-10-16 04:29:05 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:18 -0400
commit9fa7bc016a688630386378c205f9ee0f7b2cc834 (patch)
tree50e8fd68166f2b7541377753420142ce34266a97 /drivers/video/s3c2410fb.h
parent84902b7af642c86a518c17629c0dbe705a4b6d14 (diff)
s3c2410fb: source code improvements
This patch: - moves more display mode preparations to s3c2410fb_check_var() - reduces number of fields in s3c2410fb_info - removes redundant values setting in s3c2410fb_probe() - removes static mach_info pointer - releases fb_info structure in s3c2410fb_remove() - changes s3c2410fb_init to __init from __devinit - fixes few typos in comments and removes unused includes Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> 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/s3c2410fb.h')
-rw-r--r--drivers/video/s3c2410fb.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/s3c2410fb.h b/drivers/video/s3c2410fb.h
index 9e86fffccb32..6ce5dc26c5f7 100644
--- a/drivers/video/s3c2410fb.h
+++ b/drivers/video/s3c2410fb.h
@@ -16,7 +16,7 @@
16 * 16 *
17 * 2004-09-07: Arnaud Patard <arnaud.patard@rtp-net.org> 17 * 2004-09-07: Arnaud Patard <arnaud.patard@rtp-net.org>
18 * - Renamed from h1940fb.h to s3c2410fb.h 18 * - Renamed from h1940fb.h to s3c2410fb.h
19 * - Chenged h1940 to s3c2410 19 * - Changed h1940 to s3c2410
20 * 20 *
21 * 2004-07-15: Arnaud Patard <arnaud.patard@rtp-net.org> 21 * 2004-07-15: Arnaud Patard <arnaud.patard@rtp-net.org>
22 * - First version 22 * - First version
@@ -32,20 +32,8 @@ struct s3c2410fb_info {
32 struct resource *mem; 32 struct resource *mem;
33 void __iomem *io; 33 void __iomem *io;
34 34
35 struct s3c2410fb_mach_info *mach_info;
36
37 unsigned current_display;
38
39 /* raw memory addresses */
40 dma_addr_t map_dma; /* physical */
41 u_char * map_cpu; /* virtual */
42 u_int map_size;
43
44 struct s3c2410fb_hw regs; 35 struct s3c2410fb_hw regs;
45 36
46 /* addresses of pieces placed in raw buffer */
47 u_char * screen_cpu; /* virtual address of buffer */
48 dma_addr_t screen_dma; /* physical address of buffer */
49 unsigned int palette_ready; 37 unsigned int palette_ready;
50 38
51 /* keep these registers in case we need to re-write palette */ 39 /* keep these registers in case we need to re-write palette */