Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74c4fb05 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Jiri Kosina
Browse files

HID: hv_mouse: Properly add the hid device



We need to properly add the hid device to correctly initialize the sysfs state.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Reported-by: default avatarFuzhou Chen <fuzhouch@microsoft.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 045b1684
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -506,6 +506,10 @@ static int mousevsc_probe(struct hv_device *device,

	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);