udevtrigger: add device_has_attribute helper
authorGabor Juhos <juhosg@openwrt.org>
Tue, 10 Sep 2013 10:59:21 +0000 (12:59 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Sep 2013 11:25:35 +0000 (13:25 +0200)
commit070bb98651b7e38d953eeffc5b0435e909e603b9
tree7164097f2cac2d10b8d759f264c2d749530160d3
parentee92d6fa240e28d8031d7204939ffec61090d7e2
udevtrigger: add device_has_attribute helper

Move the code from device_list_insert() into
a separate function. This makes it possible
to reuse the code for other attribute files.

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