On Fri, Jul 17, 2015 at 07:30:48PM +0300, Vladimir Davydov wrote: > > I think class_find_device is already capable of doing this. It just > needs a bit tweaked match function. Something like this, may be? Yeah, should do the trick. Would you cook the patch or prefer me to make it and test?