Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e84a02ba0b33a97a8486f3248fd45f50b1a1c014
Commit:     e84a02ba0b33a97a8486f3248fd45f50b1a1c014
Parent:     7a883eaf62f4b943ebec738ce3b0796c67ef5d32
Author:     Mattia Dongili <[EMAIL PROTECTED]>
AuthorDate: Sat Aug 4 00:22:30 2007 +0900
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Fri Aug 3 15:25:00 2007 -0400

    sony-laptop: restore the last user requested brightness level on resume.
    
    Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/misc/sony-laptop.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index 14ee06c..9a803e1 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -942,6 +942,11 @@ static int sony_nc_resume(struct acpi_device *device)
                }
        }
 
+       /* set the last requested brightness level */
+       if (sony_backlight_device &&
+                       !sony_backlight_update_status(sony_backlight_device))
+               printk(KERN_WARNING DRV_PFX "unable to restore brightness 
level");
+
        /* re-initialize models with specific requirements */
        dmi_check_system(sony_nc_ids);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to