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

Commit 0fa83f2e authored by rbandi's avatar rbandi
Browse files

HID: qvr: Add HID Quirks to hid device



Add HID Quirks to hid device for supporting
non-standard HID report descriptors and
incoming events.

Change-Id: I0aa1d19eb4892180da6b08ad3713489b626b5a66
Signed-off-by: default avatarrbandi <rohitbandi@codeaurora.org>
parent 2f157693
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -498,6 +498,14 @@ 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";

	//For devices with non-standard HID report descriptors, it is
	//required to force the registration of an input device.
	hdev->quirks |= HID_QUIRK_HIDINPUT_FORCE;

	//Devices with non-standard incoming events need to use this quirk.
	hdev->quirks |= HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE;

	sensor->hdev = hdev;

	ret = register_smp2p(&hdev->dev, node_name, &sensor->gpio_info_out);