Created
April 24, 2016 14:39
-
-
Save spbnick/a7ec56164bc830ff6f6bc56281c60e18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hid-uclogic.c b/hid-uclogic.c | |
index 86bf880..bc3090c 100644 | |
--- a/hid-uclogic.c | |
+++ b/hid-uclogic.c | |
@@ -744,7 +744,7 @@ static int uclogic_input_mapping(struct hid_device *hdev, struct hid_input *hi, | |
return 0; | |
} | |
-static void uclogic_input_configured(struct hid_device *hdev, | |
+static int uclogic_input_configured(struct hid_device *hdev, | |
struct hid_input *hi) | |
{ | |
char *name; | |
@@ -754,7 +754,7 @@ static void uclogic_input_configured(struct hid_device *hdev, | |
/* no report associated (HID_QUIRK_MULTI_INPUT not set) */ | |
if (!hi->report) | |
- return; | |
+ return 0; | |
field = hi->report->field[0]; | |
@@ -787,6 +787,7 @@ static void uclogic_input_configured(struct hid_device *hdev, | |
hi->input->name = name; | |
} | |
} | |
+ return 0; | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment