aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2009-07-12 22:33:24 -0400
committerLen Brown <len.brown@intel.com>2009-12-30 01:46:12 -0500
commit28c32e99bdf5ab838e7179c1aaca5a35a07f2a2b (patch)
tree78936dee92f247f8e351aad4618b793c91bd3d3a /drivers/acpi
parent6b7b284958d47b77d06745b36bc7f36dab769d9b (diff)
ACPI video: no warning message if "acpi_backlight=vendor" is used
AML code always sends notifications to ACPI video device, even if we disable the ACPI backlight control by using boot option "acpi_backlight=vendor". In this case we should not print any warning message. http://bugzilla.kernel.org/show_bug.cgi?id=13671#c14 Sigend-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 05dff631591c..3b063a6ac52e 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1979,6 +1979,10 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event)
1979 unsigned long long level_current, level_next; 1979 unsigned long long level_current, level_next;
1980 int result = -EINVAL; 1980 int result = -EINVAL;
1981 1981
1982 /* no warning message if acpi_backlight=vendor is used */
1983 if (!acpi_video_backlight_support())
1984 return 0;
1985
1982 if (!device->brightness) 1986 if (!device->brightness)
1983 goto out; 1987 goto out;
1984 1988