Loading drivers/acpi/video.c +61 −53 Original line number Diff line number Diff line /* * video.c - ACPI Video Driver ($Revision:$) * video.c - ACPI Video Driver * * Copyright (C) 2004 Luming Yu <luming.yu@intel.com> * Copyright (C) 2004 Bruno Ducrot <ducrot@poupinou.org> Loading Loading @@ -243,8 +243,10 @@ static int acpi_video_get_brightness(struct backlight_device *bd) return -EINVAL; for (i = 2; i < vd->brightness->count; i++) { if (vd->brightness->levels[i] == cur_level) /* The first two entries are special - see page 575 of the ACPI spec 3.0 */ /* * The first two entries are special - see page 575 * of the ACPI spec 3.0 */ return i-2; } return 0; Loading Loading @@ -316,9 +318,11 @@ static const struct thermal_cooling_device_ops video_cooling_ops = { .set_cur_state = video_set_cur_state, }; /* -------------------------------------------------------------------------- Video Management -------------------------------------------------------------------------- */ /* * -------------------------------------------------------------------------- * Video Management * -------------------------------------------------------------------------- */ static int acpi_video_device_lcd_query_levels(struct acpi_video_device *device, Loading Loading @@ -556,7 +560,8 @@ acpi_video_device_lcd_get_level_current(struct acpi_video_device *device, buf)); device->cap._BQC = device->cap._BCQ = 0; } else { /* Fixme: /* * Fixme: * should we return an error or ignore this failure? * dev->brightness->curr is a cached value which stores * the correct current backlight level in most cases. Loading Loading @@ -1039,7 +1044,8 @@ static int acpi_video_bus_check(struct acpi_video_bus *video) return -ENODEV; pci_dev_put(dev); /* Since there is no HID, CID and so on for VGA driver, we have /* * Since there is no HID, CID and so on for VGA driver, we have * to check well known required nodes. */ Loading Loading @@ -1069,9 +1075,11 @@ static int acpi_video_bus_check(struct acpi_video_bus *video) return status; } /* -------------------------------------------------------------------------- Driver Interface -------------------------------------------------------------------------- */ /* * -------------------------------------------------------------------------- * Driver Interface * -------------------------------------------------------------------------- */ /* device interface */ static struct acpi_video_device_attrib* Loading Loading
drivers/acpi/video.c +61 −53 Original line number Diff line number Diff line /* * video.c - ACPI Video Driver ($Revision:$) * video.c - ACPI Video Driver * * Copyright (C) 2004 Luming Yu <luming.yu@intel.com> * Copyright (C) 2004 Bruno Ducrot <ducrot@poupinou.org> Loading Loading @@ -243,8 +243,10 @@ static int acpi_video_get_brightness(struct backlight_device *bd) return -EINVAL; for (i = 2; i < vd->brightness->count; i++) { if (vd->brightness->levels[i] == cur_level) /* The first two entries are special - see page 575 of the ACPI spec 3.0 */ /* * The first two entries are special - see page 575 * of the ACPI spec 3.0 */ return i-2; } return 0; Loading Loading @@ -316,9 +318,11 @@ static const struct thermal_cooling_device_ops video_cooling_ops = { .set_cur_state = video_set_cur_state, }; /* -------------------------------------------------------------------------- Video Management -------------------------------------------------------------------------- */ /* * -------------------------------------------------------------------------- * Video Management * -------------------------------------------------------------------------- */ static int acpi_video_device_lcd_query_levels(struct acpi_video_device *device, Loading Loading @@ -556,7 +560,8 @@ acpi_video_device_lcd_get_level_current(struct acpi_video_device *device, buf)); device->cap._BQC = device->cap._BCQ = 0; } else { /* Fixme: /* * Fixme: * should we return an error or ignore this failure? * dev->brightness->curr is a cached value which stores * the correct current backlight level in most cases. Loading Loading @@ -1039,7 +1044,8 @@ static int acpi_video_bus_check(struct acpi_video_bus *video) return -ENODEV; pci_dev_put(dev); /* Since there is no HID, CID and so on for VGA driver, we have /* * Since there is no HID, CID and so on for VGA driver, we have * to check well known required nodes. */ Loading Loading @@ -1069,9 +1075,11 @@ static int acpi_video_bus_check(struct acpi_video_bus *video) return status; } /* -------------------------------------------------------------------------- Driver Interface -------------------------------------------------------------------------- */ /* * -------------------------------------------------------------------------- * Driver Interface * -------------------------------------------------------------------------- */ /* device interface */ static struct acpi_video_device_attrib* Loading