acpi_video.c (e219aafe50fd546b8686582ddbafd24c3c2eda04) | acpi_video.c (90b066b15eda028ed44299f01236f8576dd8551d) |
---|---|
1/* 2 * video.c - ACPI Video Driver 3 * 4 * Copyright (C) 2004 Luming Yu <luming.yu@intel.com> 5 * Copyright (C) 2004 Bruno Ducrot <ducrot@poupinou.org> 6 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net> 7 * 8 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 2058 unchanged lines hidden (view full) --- 2067 mutex_lock(&video_list_lock); 2068 list_for_each_entry(video, &video_bus_head, entry) 2069 acpi_video_bus_unregister_backlight(video); 2070 mutex_unlock(&video_list_lock); 2071 } 2072 mutex_unlock(®ister_count_mutex); 2073} 2074 | 1/* 2 * video.c - ACPI Video Driver 3 * 4 * Copyright (C) 2004 Luming Yu <luming.yu@intel.com> 5 * Copyright (C) 2004 Bruno Ducrot <ducrot@poupinou.org> 6 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net> 7 * 8 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 2058 unchanged lines hidden (view full) --- 2067 mutex_lock(&video_list_lock); 2068 list_for_each_entry(video, &video_bus_head, entry) 2069 acpi_video_bus_unregister_backlight(video); 2070 mutex_unlock(&video_list_lock); 2071 } 2072 mutex_unlock(®ister_count_mutex); 2073} 2074 |
2075bool acpi_video_handles_brightness_key_presses(void) 2076{ 2077 bool have_video_busses; 2078 2079 mutex_lock(&video_list_lock); 2080 have_video_busses = !list_empty(&video_bus_head); 2081 mutex_unlock(&video_list_lock); 2082 2083 return have_video_busses; 2084} 2085EXPORT_SYMBOL(acpi_video_handles_brightness_key_presses); 2086 |
|
2075/* 2076 * This is kind of nasty. Hardware using Intel chipsets may require 2077 * the video opregion code to be run first in order to initialise 2078 * state before any ACPI video calls are made. To handle this we defer 2079 * registration of the video class until the opregion code has run. 2080 */ 2081 2082static int __init acpi_video_init(void) --- 28 unchanged lines hidden --- | 2087/* 2088 * This is kind of nasty. Hardware using Intel chipsets may require 2089 * the video opregion code to be run first in order to initialise 2090 * state before any ACPI video calls are made. To handle this we defer 2091 * registration of the video class until the opregion code has run. 2092 */ 2093 2094static int __init acpi_video_init(void) --- 28 unchanged lines hidden --- |