diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2011-11-17 14:12:12 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-11-22 23:11:10 +0100 |
commit | 43d782ae80b82667d66010d0d82aa80893a48d12 (patch) | |
tree | d757170b529aed0068bd987522b5c3e1aa32babe /drivers/hid/hid-wiimote.h | |
parent | 1d3452c63d4b62329d34d7634f67a3dbec21ca87 (diff) | |
download | op-kernel-dev-43d782ae80b82667d66010d0d82aa80893a48d12.zip op-kernel-dev-43d782ae80b82667d66010d0d82aa80893a48d12.tar.gz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-wiimote.h b/drivers/hid/hid-wiimote.h index 7b67657..c81dbeb 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, \ |