commit | 35cb2a4c87728466c01258d50cccafe2cbe5f718 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Feb 06 09:54:50 2020 -0700 |
committer | Bin Meng <bmeng.cn@gmail.com> | Fri Feb 07 22:41:24 2020 +0800 |
tree | 56db3ef185e028253871f7f0ecd7d3c7a80e366a | |
parent | 27c0e171197b509c75b406b20e7be79954f60d5e [diff] |
dm: core: Add a function to find a device by drvdata It is sometimes useful to find a device in a uclass using only its driver data. The driver data often indicates the 'subtype' of the device, e,g, via its compatible string. Add a function to handle this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>