From: Scott Moreau Date: Wed, 13 Jan 2016 14:40:43 +0000 (-0700) Subject: HID: sony: Fixup output reports for the nyko core controller X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad07b7a6cf8898e1ec76a2641f6186c80d0b8a29;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git HID: sony: Fixup output reports for the nyko core controller The nyko core controller uses the same output report format as the sixaxis controllers, but it expects the report id at offset 1. This does not interfere with the official controllers as this byte is considered a padding byte by the current code. Signed-off-by: Scott Moreau Acked-by: Antonio Ospite Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 123b11a25ce6..173af01ca080 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -1802,7 +1802,7 @@ static void sixaxis_send_output_report(struct sony_sc *sc) static const union sixaxis_output_report_01 default_report = { .buf = { 0x01, - 0x00, 0xff, 0x00, 0xff, 0x00, + 0x01, 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x27, 0x10, 0x00, 0x32, 0xff, 0x27, 0x10, 0x00, 0x32,