We need to properly add the hid device to correctly initialize the sysfs state.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Fuzhou Chen <fuzhouch@microsoft.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse");
+ ret = hid_add_device(hid_dev);
+ if (ret)
+ goto probe_err1;
+
ret = hid_parse_report(hid_dev, input_dev->report_desc,
input_dev->report_desc_size);