Playstation2 Controller with USB adapter need help getting additional buttons to work

Hello,

This is a follow up to this thread on the old forums:

Basically I have a chinese usb adapter for playstation 2 (ps2) controllers, this adapter worked fine on older kernels such as 6.5 I believe, but after that it stop working properly, the controller was still recognized but some buttons didn’t work. Luckily I found the thread above where the user Sliver X posted a dkms module of an old version of the driver that fixed the buttons issue.

That driver has been working really well for a while, but recently I have upgraded to the Kernel 6.12 and it stopped working / compiling. Luckily I found a fix that I solves the problem and makes the driver usable again.

I just changed the line 1132
static u8 *sony_report_fixup(struct hid_device *hdev, u8 *rdesc,
to
static const u8 *sony_report_fixup(struct hid_device *hdev, u8 *rdesc,

Below you can find the updated driver source that can be used with dkms, all credits go to Sliver X and the original kernel code contributors (Andreas Gal, Vojtech Pavlik, Michael Haboustak, Jiri Slaby, David Dillow, Jiri Kosina, Colin Leitner, Frank Praznik):
https://www.mirrored.to/files/0EI1PEXE/hid-sony-downgrader_v2.0.1.zip_links

(I tried to attach the file to the post but I was unable to, therefore using the link above for hosting it)