aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-debug.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/hid/hid-debug.c
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'drivers/hid/hid-debug.c')
-rw-r--r--drivers/hid/hid-debug.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index 933fff0fff1..9a243ca96e6 100644
--- a/drivers/hid/hid-debug.c
+++ b/drivers/hid/hid-debug.c
@@ -31,7 +31,6 @@
31#include <linux/debugfs.h> 31#include <linux/debugfs.h>
32#include <linux/seq_file.h> 32#include <linux/seq_file.h>
33#include <linux/sched.h> 33#include <linux/sched.h>
34#include <linux/export.h>
35#include <linux/slab.h> 34#include <linux/slab.h>
36#include <linux/uaccess.h> 35#include <linux/uaccess.h>
37#include <linux/poll.h> 36#include <linux/poll.h>
@@ -114,14 +113,6 @@ static const struct hid_usage_entry hid_usage_table[] = {
114 {0, 0xbd, "FlareRelease"}, 113 {0, 0xbd, "FlareRelease"},
115 {0, 0xbe, "LandingGear"}, 114 {0, 0xbe, "LandingGear"},
116 {0, 0xbf, "ToeBrake"}, 115 {0, 0xbf, "ToeBrake"},
117 { 6, 0, "GenericDeviceControls" },
118 {0, 0x20, "BatteryStrength" },
119 {0, 0x21, "WirelessChannel" },
120 {0, 0x22, "WirelessID" },
121 {0, 0x23, "DiscoverWirelessControl" },
122 {0, 0x24, "SecurityCodeCharacterEntered" },
123 {0, 0x25, "SecurityCodeCharactedErased" },
124 {0, 0x26, "SecurityCodeCleared" },
125 { 7, 0, "Keyboard" }, 116 { 7, 0, "Keyboard" },
126 { 8, 0, "LED" }, 117 { 8, 0, "LED" },
127 {0, 0x01, "NumLock"}, 118 {0, 0x01, "NumLock"},
@@ -911,21 +902,15 @@ static void hid_dump_input_mapping(struct hid_device *hid, struct seq_file *f)
911 902
912} 903}
913 904
905
914static int hid_debug_rdesc_show(struct seq_file *f, void *p) 906static int hid_debug_rdesc_show(struct seq_file *f, void *p)
915{ 907{
916 struct hid_device *hdev = f->private; 908 struct hid_device *hdev = f->private;
917 const __u8 *rdesc = hdev->rdesc;
918 unsigned rsize = hdev->rsize;
919 int i; 909 int i;
920 910
921 if (!rdesc) {
922 rdesc = hdev->dev_rdesc;
923 rsize = hdev->dev_rsize;
924 }
925
926 /* dump HID report descriptor */ 911 /* dump HID report descriptor */
927 for (i = 0; i < rsize; i++) 912 for (i = 0; i < hdev->rsize; i++)
928 seq_printf(f, "%02x ", rdesc[i]); 913 seq_printf(f, "%02x ", hdev->rdesc[i]);
929 seq_printf(f, "\n\n"); 914 seq_printf(f, "\n\n");
930 915
931 /* dump parsed data and input mappings */ 916 /* dump parsed data and input mappings */