Skip to content

Commit 4c5300d

Browse files
committed
Revert "ASoC: SDCA: use old struct hid_descriptor"
This reverts commit 545a2c7. JIRA: https://issues.redhat.com/browse/RHEL-118909 Since !7476 is merged, this RHEL-only workaround is no longer needed. Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
1 parent 1188421 commit 4c5300d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sdca/sdca_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static int sdwhid_parse(struct hid_device *hid)
2424
unsigned int rsize;
2525
int ret;
2626

27-
rsize = le16_to_cpu(entity->hide.hid_desc.desc[0].wDescriptorLength);
27+
rsize = le16_to_cpu(entity->hide.hid_desc.rpt_desc.wDescriptorLength);
2828

2929
if (!rsize || rsize > HID_MAX_DESCRIPTOR_SIZE) {
3030
dev_err(&hid->dev, "invalid size of report descriptor (%u)\n", rsize);

0 commit comments

Comments
 (0)