summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMattia Dongili <malattia@linux.it>2007-08-03 15:22:30 (GMT)
committerLen Brown <len.brown@intel.com>2007-08-03 19:25:00 (GMT)
commite84a02ba0b33a97a8486f3248fd45f50b1a1c014 (patch)
tree97623654522478a1697d90d89c655e07aa1f9d7b /drivers/misc
parent7a883eaf62f4b943ebec738ce3b0796c67ef5d32 (diff)
downloadlinux-e84a02ba0b33a97a8486f3248fd45f50b1a1c014.tar.xz
sony-laptop: restore the last user requested brightness level on resume.
Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sony-laptop.c5
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);