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

Commit 63cfdf07 authored by rbandi's avatar rbandi
Browse files

HID: qvr: Remove device pointer on disconnect



Make local device pointer NULL when .remove is
invoked.

Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca955902c
Signed-off-by: default avatarrbandi <rohitbandi@codeaurora.org>
parent 815c4533
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -620,6 +620,9 @@ static int qvr_external_sensor_raw_event(struct hid_device *hid,

static void qvr_external_sensor_device_remove(struct hid_device *hdev)
{
	struct qvr_external_sensor *sensor = &qvr_external_sensor;

	sensor->device = NULL;
	hid_hw_stop(hdev);
}