Skip to content

Commit

Permalink
ACPI video: no warning message if "acpi_backlight=vendor" is used
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Rui authored and Len Brown committed Dec 30, 2009
1 parent 6b7b284 commit 28c32e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,10 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event)
unsigned long long level_current, level_next;
int result = -EINVAL;

/* no warning message if acpi_backlight=vendor is used */
if (!acpi_video_backlight_support())
return 0;

if (!device->brightness)
goto out;

Expand Down

0 comments on commit 28c32e9

Please sign in to comment.