summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-wiimote.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-11-17 14:12:12 +0100
committerJiri Kosina <jkosina@suse.cz>2011-11-22 23:11:10 +0100
commit43d782ae80b82667d66010d0d82aa80893a48d12 (patch)
treed757170b529aed0068bd987522b5c3e1aa32babe /drivers/hid/hid-wiimote.h
parent1d3452c63d4b62329d34d7634f67a3dbec21ca87 (diff)
downloadblackbird-op-linux-43d782ae80b82667d66010d0d82aa80893a48d12.tar.gz
blackbird-op-linux-43d782ae80b82667d66010d0d82aa80893a48d12.zip
HID: wiimote: Allow direct DRM debug access
Keep track of current drm and add new debugfs file which reads or writes the current DRM. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-wiimote.h')
-rw-r--r--drivers/hid/hid-wiimote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-wiimote.h b/drivers/hid/hid-wiimote.h
index 7b6765797f81..c81dbeb086c5 100644
--- a/drivers/hid/hid-wiimote.h
+++ b/drivers/hid/hid-wiimote.h
@@ -52,6 +52,7 @@ struct wiimote_state {
spinlock_t lock;
__u8 flags;
__u8 accel_split[2];
+ __u8 drm;
/* synchronous cmd requests */
struct mutex sync;
@@ -109,6 +110,7 @@ enum wiiproto_reqs {
WIIPROTO_REQ_DRM_E = 0x3d,
WIIPROTO_REQ_DRM_SKAI1 = 0x3e,
WIIPROTO_REQ_DRM_SKAI2 = 0x3f,
+ WIIPROTO_REQ_MAX
};
#define dev_to_wii(pdev) hid_get_drvdata(container_of(pdev, struct hid_device, \
OpenPOWER on IntegriCloud