Skip to content

Instantly share code, notes, and snippets.

@spbnick
Created April 24, 2016 14:39
Show Gist options
  • Save spbnick/a7ec56164bc830ff6f6bc56281c60e18 to your computer and use it in GitHub Desktop.
Save spbnick/a7ec56164bc830ff6f6bc56281c60e18 to your computer and use it in GitHub Desktop.
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