aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/sm501fb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c
index 6e7810d914cc..3a98d5a86af1 100644
--- a/drivers/video/sm501fb.c
+++ b/drivers/video/sm501fb.c
@@ -286,13 +286,13 @@ static int sm501fb_check_var(struct fb_var_screeninfo *var,
286 286
287 case 16: 287 case 16:
288 if (sm->pdata->flags & SM501_FBPD_SWAP_FB_ENDIAN) { 288 if (sm->pdata->flags & SM501_FBPD_SWAP_FB_ENDIAN) {
289 var->red.offset = 11;
290 var->green.offset = 5;
291 var->blue.offset = 0;
292 } else {
293 var->blue.offset = 11; 289 var->blue.offset = 11;
294 var->green.offset = 5; 290 var->green.offset = 5;
295 var->red.offset = 0; 291 var->red.offset = 0;
292 } else {
293 var->red.offset = 11;
294 var->green.offset = 5;
295 var->blue.offset = 0;
296 } 296 }
297 297
298 var->red.length = 5; 298 var->red.length = 5;