sony-laptop and sonypi for 2.6.23-rc2
Subsystems (3)
Mattia Dongili
maintainercover sony-laptop and sonypi for 2.6.23-rc2
Hi Len,
these 3 patches are aimed at 2.6.23-rc2 if there is time enough. There's only http://bugzilla.kernel.org/show_bug.cgi?id=8803 left, I hope to be able to have it sorted out soon.
Please apply
--- drivers/char/sonypi.c | 8 ++++++-- drivers/misc/sony-laptop.c | 9 ++++++--- 2 files changed, 12 insertions(+), 5 deletions(-)
Signature · 1 line
mattia
Mattia Dongili
maintainerPATCH 1/3 sony-laptop: restore the last user requested brightness level on resume.
--- drivers/misc/sony-laptop.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/misc/sony-laptop.c +5 -0
@@ -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);
Signature · 1 line
1.5.2.4
Mattia Dongili
maintainerPATCH 2/3 sony-laptop: sony_nc_ids[] can become static.
From: Adrian Bunk <[email protected]>
--- drivers/misc/sony-laptop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/sony-laptop.c +1 -1
@@ -845,7 +845,7 @@ static struct sony_nc_event sony_C_events[] = { };/* SNC-only model map */ -struct dmi_system_id sony_nc_ids[] = { +static struct dmi_system_id sony_nc_ids[] = { { .ident ="Sony Vaio FE Series" , .callback = sony_nc_C_enable,
Signature · 1 line
1.5.2.4
Mattia Dongili
maintainerPATCH 3/3 sonypi: fix ids member of struct acpi_driver
From: Eugene Teo <[email protected]>
ids member of struct acpi_driver is of type struct acpi_device_id, not a character array.
--- drivers/char/sonypi.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
drivers/char/sonypi.c +6 -1
@@ -1147,10 +1147,15 @@ static int sonypi_acpi_remove(struct acpi_device *device, int type)return 0 ; } +const static struct acpi_device_id sonypi_device_ids[] = { + {"SNY6001" ,0 }, + {"" ,0 }, +}; +static struct acpi_driver sonypi_acpi_driver = { .name ="sonypi" , .class ="hkey" , - .ids ="SNY6001" , + .ids = sonypi_device_ids, .ops = { .add = sonypi_acpi_add, .remove = sonypi_acpi_remove,
Signature · 1 line
1.5.2.4
Applied.
thanks,
-Len
Quoted 11 lines · Mattia Dongili
Hi Len,
these 3 patches are aimed at 2.6.23-rc2 if there is time enough. There's only http://bugzilla.kernel.org/show_bug.cgi?id=8803 left, I hope to be able to have it sorted out soon.
Please apply
--- drivers/char/sonypi.c | 8 ++++++-- drivers/misc/sony-laptop.c | 9 ++++++--- 2 files changed, 12 insertions(+), 5 deletions(-)