aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-wiimote.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-11-17 08:12:12 -0500
committerJiri Kosina <jkosina@suse.cz>2011-11-22 17:11:10 -0500
commit43d782ae80b82667d66010d0d82aa80893a48d12 (patch)
treed757170b529aed0068bd987522b5c3e1aa32babe /drivers/hid/hid-wiimote.h
parent1d3452c63d4b62329d34d7634f67a3dbec21ca87 (diff)
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 {
52 spinlock_t lock; 52 spinlock_t lock;
53 __u8 flags; 53 __u8 flags;
54 __u8 accel_split[2]; 54 __u8 accel_split[2];
55 __u8 drm;
55 56
56 /* synchronous cmd requests */ 57 /* synchronous cmd requests */
57 struct mutex sync; 58 struct mutex sync;
@@ -109,6 +110,7 @@ enum wiiproto_reqs {
109 WIIPROTO_REQ_DRM_E = 0x3d, 110 WIIPROTO_REQ_DRM_E = 0x3d,
110 WIIPROTO_REQ_DRM_SKAI1 = 0x3e, 111 WIIPROTO_REQ_DRM_SKAI1 = 0x3e,
111 WIIPROTO_REQ_DRM_SKAI2 = 0x3f, 112 WIIPROTO_REQ_DRM_SKAI2 = 0x3f,
113 WIIPROTO_REQ_MAX
112}; 114};
113 115
114#define dev_to_wii(pdev) hid_get_drvdata(container_of(pdev, struct hid_device, \ 116#define dev_to_wii(pdev) hid_get_drvdata(container_of(pdev, struct hid_device, \