-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: wiimote: Add sysfs support to wiimote driver
Add sysfs files for each led of the wiimote. Writing 1 to the file enables the led and 0 disables the led. We do not need memory barriers when checking wdata->ready since we use a spinlock directly after it. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
- Loading branch information
David Herrmann
authored and
Jiri Kosina
committed
Jul 11, 2011
1 parent
32a0d9a
commit 3c1c2fc
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
What: /sys/bus/hid/drivers/wiimote/<dev>/led1 | ||
What: /sys/bus/hid/drivers/wiimote/<dev>/led2 | ||
What: /sys/bus/hid/drivers/wiimote/<dev>/led3 | ||
What: /sys/bus/hid/drivers/wiimote/<dev>/led4 | ||
Date: July 2011 | ||
KernelVersion: 3.1 | ||
Contact: David Herrmann <dh.herrmann@googlemail.com> | ||
Description: Make it possible to set/get current led state. Reading from it | ||
returns 0 if led is off and 1 if it is on. Writing 0 to it | ||
disables the led, writing 1 enables it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters