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)
commit7bb9d5ae20efd6d11ede4b1de88bb6836cefbe81
treefc91522465fd85a9e48f6736545214e2fd60eca8
parentc90213841c25e8564be55193a6f7dd3b4a33e601
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