From: Peter Hutterer Date: Tue, 4 Aug 2015 21:37:03 +0000 (+1000) Subject: udev: use prop_value() to fetch the ID_INPUT_PROP property X-Git-Tag: 0.99.1~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05ce472a0535cd76a9e4aa82b0a8d127a73cd9e9;p=platform%2Fupstream%2Flibinput.git 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 --- 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;