diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-28 05:38:19 -0400 |
---|---|---|
committer | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-28 05:38:19 -0400 |
commit | c4d12b98ead8bb2437f656c17e7ef065fa160e13 (patch) | |
tree | 5c73444b7f1d60b759c223d915fb7645984e5865 /drivers | |
parent | ea3f4eaca09de1bcc80e922e56a6dabba5882f56 (diff) |
[PATCH] ARM: Fix AMBA CLCD fb driver for 1bpp/STN mono panels
Fix the AMBA CLCD framebuffer driver for 1bpp modes and STN
monochrome LCD panels.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/amba-clcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index acdba0c67fb8..075d3961a119 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c | |||
@@ -125,11 +125,11 @@ clcdfb_set_bitfields(struct clcd_fb *fb, struct fb_var_screeninfo *var) | |||
125 | case 2: | 125 | case 2: |
126 | case 4: | 126 | case 4: |
127 | case 8: | 127 | case 8: |
128 | var->red.length = 8; | 128 | var->red.length = var->bits_per_pixel; |
129 | var->red.offset = 0; | 129 | var->red.offset = 0; |
130 | var->green.length = 8; | 130 | var->green.length = var->bits_per_pixel; |
131 | var->green.offset = 0; | 131 | var->green.offset = 0; |
132 | var->blue.length = 8; | 132 | var->blue.length = var->bits_per_pixel; |
133 | var->blue.offset = 0; | 133 | var->blue.offset = 0; |
134 | break; | 134 | break; |
135 | case 16: | 135 | case 16: |