diff options
Diffstat (limited to 'drivers/hid/hid-prodikeys.c')
-rw-r--r-- | drivers/hid/hid-prodikeys.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hid/hid-prodikeys.c b/drivers/hid/hid-prodikeys.c index 845f428b8090..48eab84f53b5 100644 --- a/drivers/hid/hid-prodikeys.c +++ b/drivers/hid/hid-prodikeys.c | |||
@@ -740,10 +740,10 @@ int pcmidi_snd_terminate(struct pcmidi_snd *pm) | |||
740 | /* | 740 | /* |
741 | * PC-MIDI report descriptor for report id is wrong. | 741 | * PC-MIDI report descriptor for report id is wrong. |
742 | */ | 742 | */ |
743 | static void pk_report_fixup(struct hid_device *hdev, __u8 *rdesc, | 743 | static __u8 *pk_report_fixup(struct hid_device *hdev, __u8 *rdesc, |
744 | unsigned int rsize) | 744 | unsigned int *rsize) |
745 | { | 745 | { |
746 | if (rsize == 178 && | 746 | if (*rsize == 178 && |
747 | rdesc[111] == 0x06 && rdesc[112] == 0x00 && | 747 | rdesc[111] == 0x06 && rdesc[112] == 0x00 && |
748 | rdesc[113] == 0xff) { | 748 | rdesc[113] == 0xff) { |
749 | dev_info(&hdev->dev, "fixing up pc-midi keyboard report " | 749 | dev_info(&hdev->dev, "fixing up pc-midi keyboard report " |
@@ -751,6 +751,7 @@ static void pk_report_fixup(struct hid_device *hdev, __u8 *rdesc, | |||
751 | 751 | ||
752 | rdesc[144] = 0x18; /* report 4: was 0x10 report count */ | 752 | rdesc[144] = 0x18; /* report 4: was 0x10 report count */ |
753 | } | 753 | } |
754 | return rdesc; | ||
754 | } | 755 | } |
755 | 756 | ||
756 | static int pk_input_mapping(struct hid_device *hdev, struct hid_input *hi, | 757 | static int pk_input_mapping(struct hid_device *hdev, struct hid_input *hi, |