backlight: match "DISP3 BG - DI1" as well as "DISP3 BG", solving issue with Smartbook backlight not turning off during screen blank

Mistaken use of strcmp vs. proper use of strncmp caused this
This commit is contained in:
Matt Sealey
2012-07-31 15:04:57 -05:00
parent 1196165ab6
commit d1156b1817

View File

@@ -100,7 +100,7 @@ static void pwm_bl_blank(struct pwm_bl_data *pb, int type)
static int pwm_backlight_check_fb(struct fb_info *info)
{
char *id = info->fix.id;
if (!strcmp(id, "DISP3 BG"))
if (!strncmp(id, "DISP3 BG", 8))
return 1;
else
return 0;