acer-wmi: replaced the hard coded bitmap by the communication devices bitmap from...
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 6 Oct 2011 11:06:13 +0000 (19:06 +0800)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:42 +0000 (16:52 +0200)
commit1d1fc8a75fec3a2b29cc5864d45c5d03048f62e0
tree45a1f891ff9a7287b26079c0adebe52f03154445
parent1fbc01a7b0f2cf5dc375ecde3833df2fbbfdc812
acer-wmi: replaced the hard coded bitmap by the communication devices bitmap from SMBIOS

Before set communication devices state, we need query out all devices state to set
the states bitmap. That will be better use the devices bitmap in SMBIOS type Aah
instead of hardcode in driver.

Tested on Acer Travelmate 8572.

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>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c