diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2007-10-16 01:29:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:18 -0700 |
commit | 36f31a7084b8d20ced37afe92238c18ba769cdf3 (patch) | |
tree | 89cbf11b468c2083666f9f981452b982678012db /drivers/video/s3c2410fb.c | |
parent | 69816699fa019145dd163949d65a07093af73b67 (diff) | |
download | blackbird-op-linux-36f31a7084b8d20ced37afe92238c18ba769cdf3.tar.gz blackbird-op-linux-36f31a7084b8d20ced37afe92238c18ba769cdf3.zip |
s3c2410fb: removes lcdcon1 register value from s3c2410fb_display
This patch removes lcdcon1 register field from the s3c2410fb_display as all
bits are calculated from other fields.
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.c')
-rw-r--r-- | drivers/video/s3c2410fb.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index fd05231f0c08..f98e4335f152 100644 --- a/drivers/video/s3c2410fb.c +++ b/drivers/video/s3c2410fb.c @@ -207,11 +207,9 @@ static int s3c2410fb_check_var(struct fb_var_screeninfo *var, var->vsync_len = display->vsync_len; var->hsync_len = display->hsync_len; - fbi->regs.lcdcon1 = display->lcdcon1; fbi->regs.lcdcon5 = display->lcdcon5; /* set display type */ - fbi->regs.lcdcon1 &= ~S3C2410_LCDCON1_TFT; - fbi->regs.lcdcon1 |= display->type; + fbi->regs.lcdcon1 = display->type; var->transp.offset = 0; var->transp.length = 0; @@ -301,8 +299,6 @@ static void s3c2410fb_calculate_stn_lcd_regs(const struct fb_info *info, if (type != S3C2410_LCDCON1_STN4) hs >>= 1; - regs->lcdcon1 &= ~S3C2410_LCDCON1_MODEMASK; - switch (var->bits_per_pixel) { case 1: regs->lcdcon1 |= S3C2410_LCDCON1_STN1BPP; @@ -356,8 +352,6 @@ static void s3c2410fb_calculate_tft_lcd_regs(const struct fb_info *info, const struct s3c2410fb_info *fbi = info->par; const struct fb_var_screeninfo *var = &info->var; - regs->lcdcon1 &= ~S3C2410_LCDCON1_MODEMASK; - switch (var->bits_per_pixel) { case 1: regs->lcdcon1 |= S3C2410_LCDCON1_TFT1BPP; @@ -437,7 +431,6 @@ static void s3c2410fb_activate_var(struct fb_info *info) clkdiv = 2; } - fbi->regs.lcdcon1 &= ~S3C2410_LCDCON1_CLKVAL(0x3ff); fbi->regs.lcdcon1 |= S3C2410_LCDCON1_CLKVAL(clkdiv); /* write new registers */ |