[U-Boot] [PATCH v2 10/26] dm: core: Add a function to get a device's uclass ID