mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
backlight: Remove uneeded update_status call from chipsfb.c
Remove uneeded update_status call from chipsfb.c since the backlight core now receives software blanking notifications too. Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
This commit is contained in:
parent
994efacdf9
commit
85a3a9aa69
@ -145,24 +145,6 @@ static int chipsfb_set_par(struct fb_info *info)
|
|||||||
|
|
||||||
static int chipsfb_blank(int blank, struct fb_info *info)
|
static int chipsfb_blank(int blank, struct fb_info *info)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_PMAC_BACKLIGHT
|
|
||||||
mutex_lock(&pmac_backlight_mutex);
|
|
||||||
|
|
||||||
if (pmac_backlight) {
|
|
||||||
/* used to disable backlight only for blank > 1, but it seems
|
|
||||||
* useful at blank = 1 too (saves battery, extends backlight
|
|
||||||
* life)
|
|
||||||
*/
|
|
||||||
if (blank)
|
|
||||||
pmac_backlight->props->power = FB_BLANK_POWERDOWN;
|
|
||||||
else
|
|
||||||
pmac_backlight->props->power = FB_BLANK_UNBLANK;
|
|
||||||
backlight_update_status(pmac_backlight);
|
|
||||||
}
|
|
||||||
|
|
||||||
mutex_unlock(&pmac_backlight_mutex);
|
|
||||||
#endif /* CONFIG_PMAC_BACKLIGHT */
|
|
||||||
|
|
||||||
return 1; /* get fb_blank to set the colormap to all black */
|
return 1; /* get fb_blank to set the colormap to all black */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user