asus-laptop: control how BLED and WLED should be exposed
authorCorentin Chary <corentin.chary@gmail.com>
Thu, 15 Dec 2011 07:27:34 +0000 (08:27 +0100)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:16 +0000 (12:02 -0400)
commit774b06780be20d07c5459becd6495c04523a93a2
treefc91522465fd85a9e48f6736545214e2fd60eca8
parent40969c7dd6298718820e0818b5b5acef7b24923d
asus-laptop: control how BLED and WLED should be exposed

Let the user tells if BLED and WLED should be exposed as led or
rfkill (the old sysfs are still here, but this adds a standard
interface to control the device).

For example on my A6JC, with WAPF=1, I would do:

$ modprobe asus-laptop wled_type=led bluetooth_type=rfkill

There is still no known way to automatically guess what BLED
and WLED methods will control, it's why user information is needed.

A userspace database could do that automatically, and maybe some DMI
matching in the driver.

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-laptop.c