commit | 70e35b4c767968497116c8cc29eabb06e4602603 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Dec 28 13:14:15 2017 -0700 |
committer | Simon Glass <sjg@chromium.org> | Sat Feb 03 10:08:40 2018 -0700 |
tree | deeea583f64dead224bba4cbad75da72efe4b5cf | |
parent | 39fcff6ae40214b5ebf1f2796144702895d69d04 [diff] |
dm: core: Add a function to look up a uclass by name Each uclass has a driver name which we can use to look up the uclass. This is useful for logging, where the uclass ID is used as the category. Add a function to handle this, as well as a test. Signed-off-by: Simon Glass <sjg@chromium.org>