Message ID | 1247452404.15520.202.camel@rzhang-dt (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Len Brown |
Headers | show |
Index: linux-2.6/drivers/acpi/video.c =================================================================== --- linux-2.6.orig/drivers/acpi/video.c +++ linux-2.6/drivers/acpi/video.c @@ -1948,6 +1948,10 @@ acpi_video_switch_brightness(struct acpi 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;