mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 09:30:53 +07:00
3c1c2fce64
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>
11 lines
456 B
Plaintext
11 lines
456 B
Plaintext
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.
|