Skip to content

Commit

Permalink
sh7760fb: write colormap value to hardware
Browse files Browse the repository at this point in the history
The computed color value is never actually written to hardware
colormap register.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Cc: Munakata Hisao <munakata.hisao@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Manuel Lauss authored and Linus Torvalds committed Jul 28, 2008
1 parent 7fcba05 commit c27ef92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/sh7760fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static int sh7760fb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
col |= ((*g) & 0xff) << 8;
col |= ((*b) & 0xff);
col &= SH7760FB_PALETTE_MASK;
iowrite32(col, par->base + LDPR(s));

if (s < 16)
((u32 *) (info->pseudo_palette))[s] = s;
Expand Down

0 comments on commit c27ef92

Please sign in to comment.