udevtrigger: use a helper function for subdir scanning
authorGabor Juhos <juhosg@openwrt.org>
Tue, 10 Sep 2013 10:59:23 +0000 (12:59 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Sep 2013 11:25:35 +0000 (13:25 +0200)
commit92b3b9ae934a631d9f872c66e39fc2f82e05a642
treeb370718c364002358c51eff76fb65ca524838100
parente6021a8a34e39328ffc867141da03c19da9b2aec
udevtrigger: use a helper function for subdir scanning

The scan_{block,class,subsystem} functions are using
identical code for scanning. Move that into a separate
function to avoid code duplication.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
udevtrigger.c