thinkpad-acpi: silence bogus warning when ACPI video is disabled
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 30 May 2009 16:25:09 +0000 (13:25 -0300)
committerLen Brown <len.brown@intel.com>
Thu, 18 Jun 2009 02:49:05 +0000 (22:49 -0400)
commit8bf3d4c535c2b9689c2979b281c24e9f59c2f4ad
tree0c98d30fd93a4a4ae2fdd10ef2e49a4bbbf6ddf2
parentf21179a47ff8d1046a61c1cf5920244997a4a7bb
thinkpad-acpi: silence bogus warning when ACPI video is disabled

Make use of acpi_video_backlight_support() also in hotkey_init, to make
sure this doesn't happen:

thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness
               control, supported by the ACPI video driver
thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
thinkpad_acpi: Standard ACPI backlight interface not available,
               thinkpad_acpi native brightness control enabled
thinkpad_acpi: detected a 16-level brightness capable ThinkPad

Note that this is purely cosmetic, there is absolutely _no_ change in
behaviour.  Those events are sometimes enabled at runtime by userspace, but
the driver never enables them by itself unless someone messed with the
default keymaps.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Reported-by: Jochen Schulz <jrschulz@well-adjusted.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/thinkpad_acpi.c