Merge branches 'release' and 'menlo' into release
authorLen Brown <len.brown@intel.com>
Thu, 7 Feb 2008 08:18:04 +0000 (03:18 -0500)
committerLen Brown <len.brown@intel.com>
Thu, 7 Feb 2008 08:18:04 +0000 (03:18 -0500)
Conflicts:

drivers/acpi/video.c

Signed-off-by: Len Brown <len.brown@intel.com>
1  2  3 
drivers/Kconfig
drivers/Makefile
drivers/acpi/processor_core.c
drivers/acpi/thermal.c
drivers/acpi/video.c
drivers/misc/Kconfig
include/acpi/processor.h

diff --cc drivers/Kconfig
Simple merge
Simple merge
Simple merge
Simple merge
index a54ff6bce8fa3865cc2e78f7bc0ae2ffd0e6e0c3,a54ff6bce8fa3865cc2e78f7bc0ae2ffd0e6e0c3,eab9c4213b49625a800c42b581b0e6931cb9c39a..82815cff15a9085efcfac1c98cf654623f174f89
@@@@ -660,6 -660,6 -702,8 +710,7 @@@@ static void acpi_video_device_find_cap(
        kfree(obj);
   
        if (device->cap._BCL && device->cap._BCM && device->cap._BQC && max_level > 0){
  -             unsigned long tmp;
++              int result;
                static int count = 0;
                char *name;
                name = kzalloc(MAX_NAME_LEN, GFP_KERNEL);
                        return;
   
                sprintf(name, "acpi_video%d", count++);
  -             acpi_video_device_lcd_get_level_current(device, &tmp);
                device->backlight = backlight_device_register(name,
                        NULL, device, &acpi_backlight_ops);
  -             device->backlight->props.max_brightness = max_level;
  -             device->backlight->props.brightness = (int)tmp;
  +             device->backlight->props.max_brightness = device->brightness->count-3;
  +             device->backlight->props.brightness = acpi_video_get_brightness(device->backlight);
                backlight_update_status(device->backlight);
-- 
                kfree(name);
++ 
++              device->cdev = thermal_cooling_device_register("LCD",
++                                      device->dev, &video_cooling_ops);
++              if (device->cdev) {
++                      printk(KERN_INFO PREFIX
++                              "%s is registered as cooling_device%d\n",
++                              device->dev->dev.bus_id, device->cdev->id);
++                      result = sysfs_create_link(&device->dev->dev.kobj,
++                                        &device->cdev->device.kobj,
++                                        "thermal_cooling");
++                      if (result)
++                              printk(KERN_ERR PREFIX "Create sysfs link\n");
++                      result = sysfs_create_link(&device->cdev->device.kobj,
++                                        &device->dev->dev.kobj,
++                                        "device");
++                         if (result)
++                              printk(KERN_ERR PREFIX "Create sysfs link\n");
++              }
        }
        if (device->cap._DCS && device->cap._DSS){
                static int count = 0;
Simple merge
Simple merge