From: Len Brown Date: Tue, 6 Apr 2010 21:06:22 +0000 (-0400) Subject: Merge branches 'battery', 'bugzilla-14667', 'bugzilla-15096', 'bugzilla-15480', ... X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=c25f7cf2032aaac9bd50d6eee982719878538082;p=linux-edison.git Merge branches 'battery', 'bugzilla-14667', 'bugzilla-15096', 'bugzilla-15480', 'bugzilla-15521', 'bugzilla-15605', 'gpe-reference-counters', 'misc', 'pxm-fix' and 'video-random-key' into release --- c25f7cf2032aaac9bd50d6eee982719878538082 diff --cc drivers/acpi/scan.c index 189cbc2585f,fb7fc24fe72,0261b116d05,189cbc2585f,fb7fc24fe72,95c90ff5b9a,fb7fc24fe72,189cbc2585f,189cbc2585f,189cbc2585f..0338f513a01 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@@@@@@@@@@ -1118,8 -1082,6 -1119,8 -1118,8 -1082,6 -1112,14 -1082,6 -1118,8 -1118,8 -1118,8 +1113,14 @@@@@@@@@@@ static void acpi_device_set_id(struct a acpi_add_id(device, ACPI_BAY_HID); else if (ACPI_SUCCESS(acpi_dock_match(device))) acpi_add_id(device, ACPI_DOCK_HID); + + + else if (!acpi_ibm_smbus_match(device)) + + + acpi_add_id(device, ACPI_SMBUS_IBM_HID); +++++ ++++ else if (!acpi_device_hid(device) && +++++ ++++ ACPI_IS_ROOT_DEVICE(device->parent)) { +++++ ++++ acpi_add_id(device, ACPI_BUS_HID); /* \_SB, LNXSYBUS */ +++++ ++++ strcpy(device->pnp.device_name, ACPI_BUS_DEVICE_NAME); +++++ ++++ strcpy(device->pnp.device_class, ACPI_BUS_CLASS); +++++ ++++ } break; case ACPI_BUS_TYPE_POWER: diff --cc drivers/acpi/video.c index cbe6f3924a1,2ff2b6ab5b6,416eb0303a8,cbe6f3924a1,cbe6f3924a1,cbe6f3924a1,cbe6f3924a1,cbe6f3924a1,cbe6f3924a1,2c7ca7a4a14..a0c93b32148 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@@@@@@@@@@ -1019,7 -1015,8 -1020,14 -1019,7 -1019,7 -1019,7 -1019,7 -1019,7 -1019,7 -1019,7 +1020,14 @@@@@@@@@@@ static void acpi_video_device_find_cap( kfree(name); if (IS_ERR(device->backlight)) return; - device->backlight->props.max_brightness = device->brightness->count-3; + ++ +++++++ /* ++ +++++++ * Save current brightness level in case we have to restore it ++ +++++++ * before acpi_video_device_lcd_set_level() is called next time. ++ +++++++ */ ++ +++++++ device->backlight->props.brightness = ++ +++++++ acpi_video_get_brightness(device->backlight); + +++++++ result = sysfs_create_link(&device->backlight->dev.kobj, &device->dev->dev.kobj, "device"); if (result)