]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
backlight: fix pwm_bl.c to notify platform code when suspending
authorMarc Zyngier <maz@misterjones.org>
Fri, 19 Jun 2009 08:50:54 +0000 (10:50 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Fri, 3 Jul 2009 06:22:41 +0000 (14:22 +0800)
commit82e8b54229fb121946151b82e8ff3c3284bd723f
tree1130484cef22b3538beb0bbde5fc781966bebf91
parent4aa78264d14bb0e87897acb90941c368248e20ce
backlight: fix pwm_bl.c to notify platform code when suspending

When suspending, pwm-bl sets duty cycle to 0, and shuts down the pwm
device.

This patch ensure that the platform code is called before that
(through the notify callback_, leaving a chance for the platform code
to configure GPIOs (shutting off the backlight, for example), much like
it is done during normal operations.

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
drivers/video/backlight/pwm_bl.c