Skip to content

Commit

Permalink
hid-xpadneo, core: Match kernel 6.12 report_fixup signature
Browse files Browse the repository at this point in the history
This tripped some compilers when promoting warning to errors.

Link: #506
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Nov 24, 2024
1 parent be65dbb commit 1eb7d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ static int xpadneo_input_mapping(struct hid_device *hdev, struct hid_input *hi,
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
static u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize)
#else
static const u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize)
static const __u8 *xpadneo_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize)
#endif
{
struct xpadneo_devdata *xdata = hid_get_drvdata(hdev);
Expand Down

0 comments on commit 1eb7d45

Please sign in to comment.