[PATCH v2 02/17] dm: core: Add a function to find a device by drvdata