]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wiimote: Add drm request
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 17 Aug 2011 09:43:23 +0000 (11:43 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 23 Aug 2011 08:55:34 +0000 (10:55 +0200)
commit4c9c2adc2f55e9434466183096783727541edea1
tree88f72371481d6a3940efc788ec7e77dd5b89362c
parenta41d26eddb1f0458a3aa8228c8102b183b26256a
HID: wiimote: Add drm request

The wiimote reports data in several data reporting modes (DRM). The DRM
request makes the wiimote send data in the requested drm.

The DRM mode can be set explicitely or can be chosen by the driver. To let
the driver choose the DRM mode, pass WIIPROTO_REQ_NULL placeholder to it. This
is no valid request and is replaced with an appropriate DRM.

Currently, the driver always sets the basic DRM_K mode, but this will be
extended when further peripherals like accelerometer and IR are supported.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote.c