udev: improve device discovery with udev for add/remove
authorJohannes Zellner <johannes.zellner@nokia.com>
Tue, 15 May 2012 19:43:08 +0000 (12:43 -0700)
committerQt by Nokia <qt-info@nokia.com>
Tue, 15 May 2012 21:03:23 +0000 (23:03 +0200)
commitfb6d83cca59930345231161c1d6bfdf79fe25807
tree782776c8985943f9180c364705c4920ed3b5b49c
parent385e584926f2957d6e9ec4c2c4e89b37a5e0c80c
udev: improve device discovery with udev for add/remove

As the udev device tree structure varies between distros and udev
versions, first probe the actual leaf node for device properties.
If leaf does not contain needed properties, walk up the tree to the
next node matching the queried submodule.

Change-Id: I09329d5a76a1a2a797513f4a787cb27fed5293c7
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/platformsupport/udev/qudevicehelper.cpp