mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-21 06:04:29 +00:00
siihdmi: strncmp against modedb instead of structure memcmp to save time and effort matching CEA VIC
This commit is contained in:
@@ -678,7 +678,11 @@ static int siihdmi_find_vic_from_modedb(const struct fb_videomode *mode)
|
||||
|
||||
for (vic = 1; vic <= 64; vic++)
|
||||
{
|
||||
if (!memcmp((void *)&cea_modes[vic], (void *)mode, sizeof(struct fb_videomode)))
|
||||
/* for comment's sake, "CEA VIC nn" is 10 characters
|
||||
* watch out porting this as it relies the CEA VIC nn string
|
||||
* to be in the modedb
|
||||
*/
|
||||
if (!strncmp(cea_modes[vic].name, mode->name, 10))
|
||||
return vic;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user