aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBruno Prémont <bonbons@linux-vserver.org>2012-08-19 13:33:33 -0400
committerJiri Kosina <jkosina@suse.cz>2012-09-05 05:48:07 -0400
commitf2df5b78394faaaaa6989396495b297756974469 (patch)
treec2a7011f6338db81798ed859907df54262890971 /drivers
parent63583c64558853f0fe7f8166907417792d184e18 (diff)
HID: picoLCD: fix dumping of IR_DATA report
The first payload byte indicates how many IR data bytes are following, not including itself. The IR data bytes appear in pairs as they represent a series of 16bit intervals. Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hid/hid-picolcd_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-picolcd_debugfs.c b/drivers/hid/hid-picolcd_debugfs.c
index 2c7308c2ae1f..eec85b53bb2c 100644
--- a/drivers/hid/hid-picolcd_debugfs.c
+++ b/drivers/hid/hid-picolcd_debugfs.c
@@ -703,9 +703,9 @@ void picolcd_debug_raw_event(struct picolcd_data *data,
703 hid_debug_event(hdev, buff); 703 hid_debug_event(hdev, buff);
704 } else if (raw_data[1] + 1 <= size) { 704 } else if (raw_data[1] + 1 <= size) {
705 snprintf(buff, BUFF_SZ, "\tData length: %d\n\tIR Data: ", 705 snprintf(buff, BUFF_SZ, "\tData length: %d\n\tIR Data: ",
706 raw_data[1]-1); 706 raw_data[1]);
707 hid_debug_event(hdev, buff); 707 hid_debug_event(hdev, buff);
708 dump_buff_as_hex(buff, BUFF_SZ, raw_data+2, raw_data[1]-1); 708 dump_buff_as_hex(buff, BUFF_SZ, raw_data+2, raw_data[1]);
709 hid_debug_event(hdev, buff); 709 hid_debug_event(hdev, buff);
710 } else { 710 } else {
711 snprintf(buff, BUFF_SZ, "\tOverflowing data length: %d\n", 711 snprintf(buff, BUFF_SZ, "\tOverflowing data length: %d\n",