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>
This commit is contained in:

committed by
Jiri Kosina

vanhempi
1d3452c63d
commit
43d782ae80
@@ -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, \
|
||||
|
Viittaa uudesa ongelmassa
Block a user