diff options
author | Antonio Ospite <ao2@ao2.it> | 2015-02-16 12:12:21 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-02-18 15:36:12 -0500 |
commit | 29b691a894f3964b26b8179423a45591fc071eea (patch) | |
tree | 0842758d33262c436ee59829bb5ca41ab4b3fada | |
parent | a7de9b867be0662e72db69fd40a4f1d2aa80ecc0 (diff) |
HID: sony: Use the minimum accepted size for feature report 0xf2
Sixaxis devices accept feature report 0xf2 when size is >= 17, not 18.
Use the minimum accepted size.
The change is mainly for documentation purposes, the code worked fine
even before this change.
Signed-off-by: Antonio Ospite <ao2@ao2.it>
Acked-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-sony.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index f3d44e5266f0..4d6376cac0bd 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c | |||
@@ -802,7 +802,7 @@ union sixaxis_output_report_01 { | |||
802 | #define DS4_REPORT_0x05_SIZE 32 | 802 | #define DS4_REPORT_0x05_SIZE 32 |
803 | #define DS4_REPORT_0x11_SIZE 78 | 803 | #define DS4_REPORT_0x11_SIZE 78 |
804 | #define DS4_REPORT_0x81_SIZE 7 | 804 | #define DS4_REPORT_0x81_SIZE 7 |
805 | #define SIXAXIS_REPORT_0xF2_SIZE 18 | 805 | #define SIXAXIS_REPORT_0xF2_SIZE 17 |
806 | 806 | ||
807 | static spinlock_t sony_dev_list_lock; | 807 | static spinlock_t sony_dev_list_lock; |
808 | static LIST_HEAD(sony_device_list); | 808 | static LIST_HEAD(sony_device_list); |