mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] video: Get the default mode from the right database
If no default mode is specified, it should be grabbed from the supplied database, not the default one. [[email protected]: fix it] [[email protected]: simplify it] [[email protected]: remove pointless DEFAULT_MODEDB_INDEX] Signed-off-by: Jordan Crouse <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Signed-off-by: Tero Roponen <[email protected]> Cc: James Simmons <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
572c04b24b
commit
c25623f554
1 changed files with 3 additions and 3 deletions
|
|
@ -34,8 +34,6 @@ const char *global_mode_option;
|
|||
* Standard video mode definitions (taken from XFree86)
|
||||
*/
|
||||
|
||||
#define DEFAULT_MODEDB_INDEX 0
|
||||
|
||||
static const struct fb_videomode modedb[] = {
|
||||
{
|
||||
/* 640x400 @ 70 Hz, 31.5 kHz hsync */
|
||||
|
|
@ -505,8 +503,10 @@ int fb_find_mode(struct fb_var_screeninfo *var,
|
|||
db = modedb;
|
||||
dbsize = ARRAY_SIZE(modedb);
|
||||
}
|
||||
|
||||
if (!default_mode)
|
||||
default_mode = &modedb[DEFAULT_MODEDB_INDEX];
|
||||
default_mode = &db[0];
|
||||
|
||||
if (!default_bpp)
|
||||
default_bpp = 8;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue