projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a883ea
)
sony-laptop: restore the last user requested brightness level on resume.
author
Mattia Dongili
<malattia@linux.it>
Fri, 3 Aug 2007 15:22:30 +0000
(
00:22
+0900)
committer
Len Brown
<len.brown@intel.com>
Fri, 3 Aug 2007 19:25:00 +0000
(15:25 -0400)
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/sony-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/misc/sony-laptop.c
b/drivers/misc/sony-laptop.c
index
14ee06c
..
9a803e1
100644
(file)
--- 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);