From: Martin Pitt Date: Thu, 3 Dec 2009 12:25:19 +0000 (+0100) Subject: udev_device_get_parent_with_subsystem_devtype(): Clarify documentation X-Git-Tag: 174~690 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=54d4f54e852cfe91246b8519e8daf48c52a3afa0;hp=89b62373422097a8eb6c1540bd41a572ed573fe6 udev_device_get_parent_with_subsystem_devtype(): Clarify documentation devtype can be NULL, in which case it is ignored for matching. --- diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c index 5d1ad9f22..4717b582b 100644 --- a/libudev/libudev-device.c +++ b/libudev/libudev-device.c @@ -577,6 +577,9 @@ struct udev_device *udev_device_get_parent(struct udev_device *udev_device) * value, and fill in information from the sys device and the udev * database entry. * + * If devtype is NULL, only subsystem is checked, and any devtype will + * match. + * * The returned the device is not referenced. It is attached to the * child device, and will be cleaned up when the child device * is cleaned up.