Re: [U-Boot] [PATCH 1/9] dm: core: Add a function to look up a uclass by name

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > 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 > --- > > drive

[U-Boot] [PATCH 1/9] dm: core: Add a function to look up a uclass by name

2017-12-28 Thread Simon Glass
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 --- drivers/core/uclass.c | 14 ++ include/dm/uclass.h | 8