Question about ACPI Video

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I read the drivers/acpi/video.c:

895         result = acpi_video_device_lcd_set_level(device, max_level);
896         if (result)
897                 goto out_free_levels;
898
899         result = acpi_video_device_lcd_get_level_current(device, &level);
900         if (result)
901                 goto out_free_levels;
902
903         br->flags._BQC_use_index = (level == max_level ? 0 : 1);
904
905         if (!br->flags._BQC_use_index) {
912                 for (i = 2; i < br->count; i++)
913                         if (level_old == br->levels[i])
914                                 level = level_old;
915                 goto set_level;
916         }
why after level == max_level, it will still need set_level again?
is this a bug, or it is necessary.

thx
luke
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux