diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-30 17:39:51 -0400 |
---|---|---|
committer | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-30 17:39:51 -0400 |
commit | 1ddb8a16aa0e60e7fdc48b1f532cf43e692f8fae (patch) | |
tree | 07a8f51940fb0ee87721628b0e84dd48b293d9a0 /drivers | |
parent | bb9bffcbef6166cf03385fbcde97c27bc1a5e689 (diff) |
[PATCH] ARM: AMBA CLCD: program palette for pseudocolor visuals
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/amba-clcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 3e386fd4c5c6..2896a380d4ea 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c | |||
@@ -256,7 +256,7 @@ clcdfb_setcolreg(unsigned int regno, unsigned int red, unsigned int green, | |||
256 | convert_bitfield(green, &fb->fb.var.green) | | 256 | convert_bitfield(green, &fb->fb.var.green) | |
257 | convert_bitfield(red, &fb->fb.var.red); | 257 | convert_bitfield(red, &fb->fb.var.red); |
258 | 258 | ||
259 | if (fb->fb.var.bits_per_pixel == 8 && regno < 256) { | 259 | if (fb->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR && regno < 256) { |
260 | int hw_reg = CLCD_PALETTE + ((regno * 2) & ~3); | 260 | int hw_reg = CLCD_PALETTE + ((regno * 2) & ~3); |
261 | u32 val, mask, newval; | 261 | u32 val, mask, newval; |
262 | 262 | ||