diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2011-11-17 08:12:10 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-11-22 17:10:26 -0500 |
commit | 43e5e7c60ee7039f538ccfaaa4e99829719d9bea (patch) | |
tree | c97a33352738f583e8f0c563af733914e02b147a /drivers/hid/hid-wiimote-core.c | |
parent | 5906215bab9fccf7aa2c4305accf0716c4634d69 (diff) |
HID: wiimote: Add debugfs support stubs
Add initializer and deinitializer for debugfs support. This will later allow raw
eeprom access and direct DRM modifications to debug wiimote behaviour and
further protocol reverse-engineerings.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-wiimote-core.c')
-rw-r--r-- | drivers/hid/hid-wiimote-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index d8ed1ec58e9f..919abbaba840 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c | |||
@@ -1161,6 +1161,7 @@ err: | |||
1161 | 1161 | ||
1162 | static void wiimote_destroy(struct wiimote_data *wdata) | 1162 | static void wiimote_destroy(struct wiimote_data *wdata) |
1163 | { | 1163 | { |
1164 | wiidebug_deinit(wdata); | ||
1164 | wiiext_deinit(wdata); | 1165 | wiiext_deinit(wdata); |
1165 | wiimote_leds_destroy(wdata); | 1166 | wiimote_leds_destroy(wdata); |
1166 | 1167 | ||
@@ -1237,6 +1238,10 @@ static int wiimote_hid_probe(struct hid_device *hdev, | |||
1237 | if (ret) | 1238 | if (ret) |
1238 | goto err_free; | 1239 | goto err_free; |
1239 | 1240 | ||
1241 | ret = wiidebug_init(wdata); | ||
1242 | if (ret) | ||
1243 | goto err_free; | ||
1244 | |||
1240 | hid_info(hdev, "New device registered\n"); | 1245 | hid_info(hdev, "New device registered\n"); |
1241 | 1246 | ||
1242 | /* by default set led1 after device initialization */ | 1247 | /* by default set led1 after device initialization */ |