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