Merge "HID: qvr: Remove device pointer on disconnect"

This commit is contained in:
qctecmdr 2020-12-08 09:27:16 -08:00 • committed by Gerrit - the friendly Code Review server
commit 32f19d33cd

View file

@ -632,6 +632,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);
}