Split the driver search + testing into a helper function
Split the driver search + testing into a helper function

Prep work for being able to probe multiple drivers on a device. The function
that tests the actual driver simply takes a const char * with the driver name,
so in the future we can loop through multiple driver names easily.

Signed-off-by: Peter Hutterer <b9c50af7afa7642f6f854434cda9ffe54ece8b85@who-t.net>

whot/libratbag,whot/libratbag,libratbag/libratbag,cvuchener/libratbag,whot/libratbag,cvuchener/libratbag,libratbag/libratbag,cvuchener/libratbag,libratbag/libratbag