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

Commit 1aee7abb authored by Rohit Bandi's avatar Rohit Bandi
Browse files

HID: qvr: Removing unnecessary code



External viewer starts streaming when VR service
requests for data using IOCTLs. So, the code which
starts streaming data on device probe is not needed.

Change-Id: I251fe4d21123260687d610f0d31fdf64e9f71a1c
Signed-off-by: default avatarRohit Bandi <rohitbandi@codeaurora.org>
parent 4a00f6e6
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -454,7 +454,6 @@ static int qvr_external_sensor_probe(struct hid_device *hdev,
	struct qvr_external_sensor *sensor = &qvr_external_sensor;
	int ret;
	char *node_name = "qcom,smp2p-interrupt-qvrexternal-5-out";
	__u8 *hid_buf;
	sensor->hdev = hdev;

	ret = register_smp2p(&hdev->dev, node_name, &sensor->gpio_info_out);
@@ -472,17 +471,6 @@ static int qvr_external_sensor_probe(struct hid_device *hdev,
		pr_err("%s: hid_hw_start failed\n", __func__);
		goto err_free;
	}
	hid_buf = kzalloc(255, GFP_ATOMIC);
	if (hid_buf == NULL)
		return -ENOMEM;
	hid_buf[0] = hid_request_report_id;
	hid_buf[1] = 7;
	ret = hid_hw_raw_request(hdev, hid_buf[0], hid_buf,
		hid_request_report_size,
		HID_FEATURE_REPORT,
		HID_REQ_SET_REPORT);
	kfree(hid_buf);

	sensor->device = &hdev->dev;

	return 0;