From 05ce472a0535cd76a9e4aa82b0a8d127a73cd9e9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 5 Aug 2015 07:37:03 +1000 Subject: [PATCH] udev: use prop_value() to fetch the ID_INPUT_PROP property This will thus work if the property is only set on a parent device, not on the device directly. https://github.com/systemd/systemd/issues/763 Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- udev/libinput-model-quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/libinput-model-quirks.c b/udev/libinput-model-quirks.c index 0e737a4b..67115fae 100644 --- a/udev/libinput-model-quirks.c +++ b/udev/libinput-model-quirks.c @@ -127,7 +127,7 @@ int main(int argc, char **argv) if (!device) goto out; - if (udev_device_get_property_value(device, "ID_INPUT_TOUCHPAD")) + if (prop_value(device, "ID_INPUT_TOUCHPAD")) handle_touchpad(device); rc = 0;