Skip to content

Commit 52a69d9

Browse files
committed
uclogic: Handle kernels w/o HID_QUIRK_NO_EMPTY_INPUT
Handle building without HID_QUIRK_NO_EMPTY_INPUT, which is removed from newer kernels, where it's behavior is the default. Fixes #160
1 parent 9496677 commit 52a69d9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hid-uclogic-core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ static int uclogic_probe(struct hid_device *hdev,
173173
* than the pen, so use QUIRK_MULTI_INPUT for all tablets.
174174
*/
175175
hdev->quirks |= HID_QUIRK_MULTI_INPUT;
176+
#ifdef HID_QUIRK_NO_EMPTY_INPUT
176177
hdev->quirks |= HID_QUIRK_NO_EMPTY_INPUT;
178+
#endif
177179

178180
/* Allocate and assign driver data */
179181
drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL);

0 commit comments

Comments
 (0)