acer-wmi: does not allow negative number set to initial device state
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Fri, 15 Apr 2011 10:42:47 +0000 (18:42 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 27 May 2011 16:36:44 +0000 (12:36 -0400)
commitc2647b5e99c8ff1b3f535c7c84564cdc53214edf
tree7e2109c49d9a4cef393675986d5e668860311f06
parentbb3ce2020451bdebe5ceac770504f427724008a9
acer-wmi: does not allow negative number set to initial device state

The driver set module parameter value: mailled, threeg and brightness
to BIOS by evaluate wmi method when driver was initialed. The default
values for those parameters are -1, so, that will be better don't set
negative value to BIOS.

Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c