]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wiimote: Add sysfs support to wiimote driver
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 5 Jul 2011 11:45:19 +0000 (13:45 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 11 Jul 2011 12:30:24 +0000 (14:30 +0200)
commite337cc0b193da60d8d6fc4f8dcdd9a581a5d1eed
tree58ba2f4c42cf84fbe23e0d7661c7c232ecf5c8de
parent274640d87bde338f5e05266ba8885dc402373457
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>
Documentation/ABI/testing/sysfs-driver-hid-wiimote [new file with mode: 0644]
drivers/hid/hid-wiimote.c