mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-02-04 08:04:49 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user