diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-08-05 07:37:03 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-08-11 07:49:42 +1000 |
commit | 05ce472a0535cd76a9e4aa82b0a8d127a73cd9e9 (patch) | |
tree | 82cdb10d28d9f1b8e4a7b6dd478d597dce2e8259 /udev | |
parent | 74236f1047cd0829ad6c96944045e67df3f1fcdb (diff) |
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 <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'udev')
-rw-r--r-- | udev/libinput-model-quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/libinput-model-quirks.c b/udev/libinput-model-quirks.c index 0e737a4..67115fa 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; |